diff options
author | jcid <devnull@localhost> | 2008-09-08 16:50:15 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-08 16:50:15 +0200 |
commit | 9d0c154884a9b10c2e45f269be0bb686da1c98c9 (patch) | |
tree | b5fd5bd56273427f5f1cbf9fe7c4b10d004ffe72 | |
parent | 994af550781a1756b1bee6225c01ff0f12219d14 (diff) |
- Adjusted internal font sizes so the default font_factor is 1.0
-rw-r--r-- | dillo2rc | 2 | ||||
-rw-r--r-- | src/dialog.cc | 3 | ||||
-rw-r--r-- | src/html.cc | 4 | ||||
-rw-r--r-- | src/plain.cc | 2 | ||||
-rw-r--r-- | src/prefs.c | 2 | ||||
-rw-r--r-- | src/uicmd.cc | 2 | ||||
-rw-r--r-- | src/web.cc | 2 |
7 files changed, 8 insertions, 9 deletions
@@ -44,7 +44,7 @@ # All fontsizes are scaled by this value # font_factor=1.5 -#font_factor=1.2 +#font_factor=1.0 # Show tooltip popup for images? # Note: We use the "title" attribute and not "alt". diff --git a/src/dialog.cc b/src/dialog.cc index ebca3e0a..167ab38d 100644 --- a/src/dialog.cc +++ b/src/dialog.cc @@ -135,8 +135,7 @@ void *a_Dialog_make_text_window(const char *txt, const char *title) /* enable wrapping lines; text uses entire width of window */ td->wrap_mode(true, 0); - /* 11.0 instead of 12.0 because the dialog's font is a bit bigger */ - td->textsize((int) rint(11.0 * prefs.font_factor)); + td->textsize((int) rint(13.0 * prefs.font_factor)); fltk::setfont(td->textfont(), td->textsize()); lines = td->total_lines(); diff --git a/src/html.cc b/src/html.cc index 4cecea48..40ef31c6 100644 --- a/src/html.cc +++ b/src/html.cc @@ -119,8 +119,8 @@ static void Html_tag_cleanup_at_close(DilloHtml *html, int TagIdx); /*----------------------------------------------------------------------------- * Local Data *---------------------------------------------------------------------------*/ -/* The following array of font sizes has to be _strictly_ crescent */ -static const int FontSizes[] = {8, 10, 12, 14, 18, 24}; +/* The following array of font sizes has to be _strictly_ increasing */ +static const int FontSizes[] = {10, 12, 14, 18, 22, 28}; static const int FontSizesNum = 6; static const int FontSizesBase = 2; diff --git a/src/plain.cc b/src/plain.cc index 0c8a528e..eb040122 100644 --- a/src/plain.cc +++ b/src/plain.cc @@ -100,7 +100,7 @@ DilloPlain::DilloPlain(BrowserWindow *p_bw, const DilloUrl *p_url) /* Create the font and attribute for the page. */ fontAttrs.name = prefs.fw_fontname; - fontAttrs.size = (int) rint(12.0 * prefs.font_factor); + fontAttrs.size = (int) rint(14.0 * prefs.font_factor); fontAttrs.weight = 400; fontAttrs.style = style::FONT_STYLE_NORMAL; diff --git a/src/prefs.c b/src/prefs.c index 3c04a621..797f2cf7 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -418,7 +418,7 @@ void a_Prefs_init(void) prefs.small_icons = FALSE; prefs.limit_text_width = FALSE; prefs.w3c_plus_heuristics = TRUE; - prefs.font_factor = 1.2; + prefs.font_factor = 1.0; prefs.show_back=TRUE; prefs.show_forw=TRUE; prefs.show_home=TRUE; diff --git a/src/uicmd.cc b/src/uicmd.cc index 1df57488..d1761fca 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -90,7 +90,7 @@ BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh, const void *v_ui) layout->attachView (viewport); new_ui->set_render_layout(*viewport); - viewport->setScrollStep((int) rint(12.0 * prefs.font_factor)); + viewport->setScrollStep((int) rint(14.0 * prefs.font_factor)); // Now, create a new browser window structure BrowserWindow *new_bw = a_Bw_new(ww, wh, 0); @@ -76,7 +76,7 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web, /* Set a style for the widget */ fontAttrs.name = prefs.vw_fontname; - fontAttrs.size = (int) rint(12.0 * prefs.font_factor); + fontAttrs.size = (int) rint(14.0 * prefs.font_factor); fontAttrs.weight = 400; fontAttrs.style = style::FONT_STYLE_NORMAL; |