Don't try to kern a character with \0

This commit is contained in:
Chris Young 2014-05-18 13:42:30 +01:00
parent 39518eb3c1
commit e197abf63a

View File

@ -653,7 +653,9 @@ int32 ami_font_width_glyph(struct OutlineFont *ofont,
/* Don't attempt to kern a UTF-16 surrogate */
skip_c2 = true;
}
if (*char2 == 0) skip_c2 = true;
if(ESetInfo(&ofont->olf_EEngine,
OT_GlyphCode, *char1,
OT_GlyphCode2, *char1,