mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-26 22:09:43 +03:00
Don't try to kern a character with \0
This commit is contained in:
parent
39518eb3c1
commit
e197abf63a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user