Fixed erroneous offset of glyphs by taking -defaultLineHeightForFont, multiplying by 0.66, and adding that to pt.y. No idea why 0.66 is the right number.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37095 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ivucica 2013-09-17 21:23:58 +00:00
parent d3381de3fa
commit a4dc4a87b6
2 changed files with 7 additions and 12 deletions

View file

@ -1,3 +1,10 @@
2013-09-17 Ivan Vucica <ivan@vucica.net>
* Source/opal/OpalGState.m:
Fixed erroneous offset of glyphs by taking -defaultLineHeightForFont,
multiplying by 0.66, and adding that to pt.y. No idea why 0.66
is the right number.
2013-09-17 Ivan Vucica <ivan@vucica.net>
* Source/opal/OpalContext.m:

View file

@ -212,18 +212,6 @@
size_t numGlyphs = CGFontGetNumberOfGlyphs(face);
return glyph < numGlyphs;
#if 0
/* FIXME: There is no proper way to determine with the toy font API,
whether a glyph is supported or not. We will just ignore ligatures
and report all other glyph as existing.
return !NSEqualSizes([self advancementForGlyph: glyph], NSZeroSize);
*/
if ((glyph >= 0xFB00) && (glyph <= 0xFB05))
return NO;
else
return YES;
#endif
}
#if 0
static