diff options
Diffstat (limited to 'amiga/font.c')
-rwxr-xr-x | amiga/font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/amiga/font.c b/amiga/font.c index 68ec8da1a..69afdbaf8 100755 --- a/amiga/font.c +++ b/amiga/font.c @@ -308,7 +308,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, *char_offset = 0; *actual_x = 0; - while (utf8_pos <= length) { + do { if ((*utf16 < 0xD800) || (0xDBFF < *utf16)) utf16charlen = 1; else @@ -351,7 +351,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, tx += tempx; utf16 = utf16next; utf8_pos = utf8_next(string, length, utf8_pos); - } + } while (utf8_pos < length); free(outf16); |