diff options
Diffstat (limited to 'amiga/font.c')
-rwxr-xr-x | amiga/font.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/amiga/font.c b/amiga/font.c index 21f26358f..310d8bec3 100755 --- a/amiga/font.c +++ b/amiga/font.c @@ -327,8 +327,6 @@ bool nsfont_split(const plot_font_style_t *fstyle, utf16next, emwidth); } - tx += tempx; - /* Check whether we have a space */ if (*(string + utf8_pos) == ' ') { /* Got a space */ @@ -343,6 +341,8 @@ bool nsfont_split(const plot_font_style_t *fstyle, } } + tx += tempx; + if ((x < tx) && (*char_offset != 0)) { /* Reached available width, and a space was found; * split there. */ @@ -352,7 +352,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, utf16 = utf16next; utf8_pos = utf8_next(string, length, utf8_pos); - }; + } free(outf16); |