* Source/opal/OpalFontInfo.m: Use new OPFontGetGlyphWithCharacter to

properly look up the glyph for a character.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37099 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2013-09-17 21:51:02 +00:00
parent a212d292f6
commit b259982fab
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-09-17 Eric Wasylishen <ewasylishen@gmail.com>
* Source/opal/OpalFontInfo.m: Use new OPFontGetGlyphWithCharacter to
properly look up the glyph for a character.
2013-09-17 Ivan Vucica <ivan@vucica.net>
* Source/opal/OpalGState.m:

View file

@ -285,8 +285,9 @@ BOOL _cairo_extents_for_NSGlyph(cairo_scaled_font_t *scaled_font, NSGlyph glyph,
- (NSGlyph) glyphForCharacter: (unichar)theChar
{
CGFontRef face = [_faceInfo fontFace];
CGGlyph result = CGFontGetGlyphWithGlyphName(face, [NSString stringWithCharacters: &theChar length: 1]);
// NSLog(@"%s: Mapped '%x' to glyph # %d", __PRETTY_FUNCTION__, (int)theChar, (int)result);
CGGlyph result = OPFontGetGlyphWithCharacter(face, theChar);
//NSLog(@"%s: Mapped '%@' to glyph # %d", __PRETTY_FUNCTION__, str, (int)result);
return result;
}