summaryrefslogtreecommitdiff
path: root/amiga/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/font.c')
-rw-r--r--amiga/font.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/amiga/font.c b/amiga/font.c
index 7d1da082b..a94bf5cb7 100644
--- a/amiga/font.c
+++ b/amiga/font.c
@@ -139,7 +139,6 @@ bool nsfont_position_in_string(const struct css_style *style,
OT_GlyphMap8Bit,&glyph,
TAG_END) == 0)
{
- *actual_x = tx;
if(utf8_from_enc(utf16,"UTF-16",4,&utf8) != UTF8_CONVERT_OK) return;
utf8len = utf8_char_byte_length(utf8);
free(utf8);
@@ -154,6 +153,7 @@ bool nsfont_position_in_string(const struct css_style *style,
}
tx+= glyph->glm_X1;
+ *actual_x = tx;
EReleaseInfo(&ofont->olf_EEngine,
OT_GlyphMap8Bit,glyph,
@@ -166,6 +166,7 @@ bool nsfont_position_in_string(const struct css_style *style,
utf16 += 2;
}
*char_offset = co;
+ if(co == 0) *actual_x = 0;
free(outf16);
}