summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xamiga/font.c4
1 files changed, 3 insertions, 1 deletions
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,