From 765c02622b23acbfdf0ec426e1e9d5beb2158680 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 13 Feb 2004 23:07:42 +0000 Subject: [project @ 2004-02-13 23:07:42 by bursa] Add font size configuration and fix proxy options bug. svn path=/import/netsurf/; revision=538 --- desktop/options.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'desktop/options.c') diff --git a/desktop/options.c b/desktop/options.c index 5b1981b6e..ca9cc9cde 100644 --- a/desktop/options.c +++ b/desktop/options.c @@ -35,6 +35,11 @@ bool option_http_proxy = false; char *option_http_proxy_host = 0; /** Proxy port. */ int option_http_proxy_port = 8080; +/** Default font size / 0.1pt. */ +int option_font_size = 100; +/** Minimum font size. */ +int option_font_min_size = 70; + EXTRA_OPTION_DEFINE @@ -46,6 +51,8 @@ struct { { "http_proxy", OPTION_BOOL, &option_http_proxy }, { "http_proxy_host", OPTION_STRING, &option_http_proxy_host }, { "http_proxy_port", OPTION_INTEGER, &option_http_proxy_port }, + { "font_size", OPTION_INTEGER, &option_font_size }, + { "font_min_size", OPTION_INTEGER, &option_font_min_size }, EXTRA_OPTION_TABLE }; @@ -111,6 +118,15 @@ void options_read(const char *path) } fclose(fp); + + if (option_font_size < 50) + option_font_size = 50; + if (1000 < option_font_size) + option_font_size = 1000; + if (option_font_min_size < 10) + option_font_min_size = 10; + if (500 < option_font_min_size) + option_font_min_size = 500; } -- cgit v1.2.3