Hi everyone. I'm working on an sdl+opengl+freetype project. I'm using the Galette face (galette-med.otf OpenType font) and I have issues with kerning. Here is an image taken from my application: http://picasaweb.google.com/lh/photo/TZl7LHGaFVfF-wOWA_q-Mw?feat=directlink
And here is an image taken from gimp using the same font and the same text. http://picasaweb.google.com/lh/photo/K-ifF9MnGu9UFJu4U1h7Sw?feat=directlink Obviously my kerning is wrong. here is my code (taken almost 1:1 from the freetype tutorial ) ... glyphIndex = FT_Get_Char_Index( ftFace, c ); if ( FT_HAS_KERNING( ftFace ) && previous && glyphIndex ) { FT_Vector delta; FT_Get_Kerning( ftFace, previous, glyphIndex, FT_KERNING_DEFAULT, &delta ); x += delta.x >> 6; } error = FT_Load_Glyph( ftFace, glyphIndex, FT_LOAD_RENDER ); if ( error ) ...; // my draw-to-texture is here x += slot->advance.x >> 6; previous = glyphIndex; ... Any ideas?
_______________________________________________ Freetype mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype
