mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Correct coveredCharacterSet. Patch by Yen-Ju Chen <yjchenx@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25387 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
87c48de8b4
commit
0dd2da6751
2 changed files with 28 additions and 23 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-08-13 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/art/ftfont.m (-coveredCharacterSet): Correct code.
|
||||
Patch by Yen-Ju Chen <yjchenx@gmail.com>.
|
||||
|
||||
2007-08-07 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/art/ftfont.m (-coveredCharacterSet): Use local FT_Size
|
||||
|
|
|
@ -890,29 +890,29 @@ static FT_Error ft_get_face(FTC_FaceID fid, FT_Library lib, FT_Pointer data, FT_
|
|||
{
|
||||
NSRange range;
|
||||
|
||||
range.location = charcode;
|
||||
range.length = 0;
|
||||
|
||||
while (glyphindex != 0)
|
||||
{
|
||||
count++;
|
||||
if (charcode == NSMaxRange(range))
|
||||
{
|
||||
range.length++;
|
||||
}
|
||||
else
|
||||
{
|
||||
[m addCharactersInRange: range];
|
||||
range.location = charcode;
|
||||
range.length = 0;
|
||||
}
|
||||
charcode = FT_Get_Next_Char(face, charcode, &glyphindex);
|
||||
}
|
||||
if (range.length > 0)
|
||||
{
|
||||
[m addCharactersInRange: range];
|
||||
}
|
||||
}
|
||||
range.location = charcode;
|
||||
range.length = 1;
|
||||
|
||||
while (glyphindex != 0)
|
||||
{
|
||||
count++;
|
||||
if (charcode == NSMaxRange(range))
|
||||
{
|
||||
range.length++;
|
||||
}
|
||||
else
|
||||
{
|
||||
[m addCharactersInRange: range];
|
||||
range.location = charcode;
|
||||
range.length = 1;
|
||||
}
|
||||
charcode = FT_Get_Next_Char(face, charcode, &glyphindex);
|
||||
}
|
||||
if (range.length > 0)
|
||||
{
|
||||
[m addCharactersInRange: range];
|
||||
}
|
||||
}
|
||||
coveredCharacterSet = [m copy];
|
||||
numberOfGlyphs = count;
|
||||
RELEASE(m);
|
||||
|
|
Loading…
Reference in a new issue