diff options
author | James Bursa <james@netsurf-browser.org> | 2004-02-13 23:07:42 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-02-13 23:07:42 +0000 |
commit | 765c02622b23acbfdf0ec426e1e9d5beb2158680 (patch) | |
tree | 20d47b0796a8fb28b73bfc51307d9eb5b7d6bd6b /riscos/font.c | |
parent | b5fd9fb2977636b64e15abad3155a5513e29eae8 (diff) | |
download | netsurf-765c02622b23acbfdf0ec426e1e9d5beb2158680.tar.gz netsurf-765c02622b23acbfdf0ec426e1e9d5beb2158680.tar.bz2 |
[project @ 2004-02-13 23:07:42 by bursa]
Add font size configuration and fix proxy options bug.
svn path=/import/netsurf/; revision=538
Diffstat (limited to 'riscos/font.c')
-rw-r--r-- | riscos/font.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/riscos/font.c b/riscos/font.c index 70dbea29f..46234031f 100644 --- a/riscos/font.c +++ b/riscos/font.c @@ -2,7 +2,7 @@ * This file is part of NetSurf, http://netsurf.sourceforge.net/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license - * Copyright 2003 James Bursa <bursa@users.sourceforge.net> + * Copyright 2004 James Bursa <bursa@users.sourceforge.net> * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net> */ @@ -132,7 +132,7 @@ struct font_set *font_new_set() struct font_data *font_open(struct font_set *set, struct css_style *style) { struct font_data *data; - unsigned int size = 16 * 11; + unsigned int size = option_font_size * 1.6; unsigned int f = 0; font_f handle; os_error *error; @@ -141,7 +141,12 @@ struct font_data *font_open(struct font_set *set, struct css_style *style) assert(style); if (style->font_size.size == CSS_FONT_SIZE_LENGTH) - size = style->font_size.value.length.value * 16; + size = len(&style->font_size.value.length, style) * + 72.0 / 90.0 * 16; + if (size < option_font_min_size * 1.6) + size = option_font_min_size * 1.6; + if (1600 < size) + size = 1600; switch (style->font_family) { case CSS_FONT_FAMILY_SANS_SERIF: |