summaryrefslogtreecommitdiff
path: root/amiga/font.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-09-05 11:58:13 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-09-05 11:58:13 +0000
commitb322e5d8d686874e998d61b2fea75f5236f0216f (patch)
tree3caa22ee8c23d282f037f65e6f4188b60e0ced33 /amiga/font.c
parent10a9f0e03046a82e7d361e5a28e5de46a9811866 (diff)
downloadnetsurf-b322e5d8d686874e998d61b2fea75f5236f0216f.tar.gz
netsurf-b322e5d8d686874e998d61b2fea75f5236f0216f.tar.bz2
More simple
svn path=/trunk/netsurf/; revision=9539
Diffstat (limited to 'amiga/font.c')
-rw-r--r--amiga/font.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/amiga/font.c b/amiga/font.c
index 4c84d1d3f..75d149a3b 100644
--- a/amiga/font.c
+++ b/amiga/font.c
@@ -190,6 +190,7 @@ bool nsfont_split(const plot_font_style_t *fstyle,
if(!(ofont = ami_open_outline_font(fstyle))) return false;
*char_offset = 0;
+ *actual_x = 0;
for(i=0;i<len;i++)
{
@@ -211,7 +212,7 @@ bool nsfont_split(const plot_font_style_t *fstyle,
{
*actual_x = tx;
*char_offset = utf8clen;
- found = true;
+ //found = true;
}
tx+= glyph->glm_X1;
@@ -234,21 +235,12 @@ bool nsfont_split(const plot_font_style_t *fstyle,
}
/*
- while(((*string != ' ')) && (string > ostr))
- {
- * todo: calc size of preceding character *
- utf8len = 1;
- string -= utf8len;
- co -= utf8len;
- }
-*/
-
if(found == false)
{
*char_offset = utf8clen;
*actual_x = tx;
}
-
+*/
free(outf16);
return true;