summaryrefslogtreecommitdiff
path: root/amiga/font.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2008-12-13 23:20:49 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2008-12-13 23:20:49 +0000
commitb682523066c800a0698a3c5863e3a27288163454 (patch)
treebc0c9dbf337acc3676599793321f11b5234fa1fc /amiga/font.c
parent8a5ec4710e0a9a252259b39a84f50d9bf1d2c21c (diff)
downloadnetsurf-b682523066c800a0698a3c5863e3a27288163454.tar.gz
netsurf-b682523066c800a0698a3c5863e3a27288163454.tar.bz2
Minor improvements to output.
svn path=/trunk/netsurf/; revision=5905
Diffstat (limited to 'amiga/font.c')
-rw-r--r--amiga/font.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/amiga/font.c b/amiga/font.c
index 2096ed38b..f495427a8 100644
--- a/amiga/font.c
+++ b/amiga/font.c
@@ -204,15 +204,7 @@ struct TextFont *ami_open_font(struct css_style *style)
}
*/
- switch(style->font_size.size)
- {
- case CSS_FONT_SIZE_LENGTH:
- tattr.tta_YSize = (UWORD)style->font_size.value.length.value;
- break;
- default:
- printf("FONT SIZE TYPE: %ld\n",style->font_size.size);
- break;
- }
+ tattr.tta_YSize = css_len2px(&style->font_size.value.length, style);
if(tattr.tta_YSize < option_font_min_size)
tattr.tta_YSize = option_font_min_size;
@@ -282,15 +274,7 @@ struct OutlineFont *ami_open_outline_font(struct css_style *style)
/* see diskfont implementation for currently unimplemented bold/italic stuff */
- switch(style->font_size.size)
- {
- case CSS_FONT_SIZE_LENGTH:
- ysize = style->font_size.value.length.value;
- break;
- default:
- printf("FONT SIZE TYPE: %ld\n",style->font_size.size);
- break;
- }
+ ysize = css_len2px(&style->font_size.value.length, style);
if(ysize < option_font_min_size)
ysize = option_font_min_size;