From e197abf63a94bd03e8fe625fd7f143126059d8fe Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 18 May 2014 13:42:30 +0100 Subject: Don't try to kern a character with \0 --- amiga/font.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amiga/font.c b/amiga/font.c index 0bf720143..0cac6a425 100755 --- a/amiga/font.c +++ b/amiga/font.c @@ -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, -- cgit v1.2.3