changeset 448:cea1e7304278

- Set prefs.vw_fontname as deafult font for the UI.
author jcid
date Mon, 10 Nov 2008 15:00:04 +0100
parents ba84335ff775
children 2c5b0c5b19c4
files ChangeLog src/dillo.cc
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Nov 09 14:09:09 2008 +0100
+++ b/ChangeLog	Mon Nov 10 15:00:04 2008 +0100
@@ -14,6 +14,7 @@
  - Cleaned up resource embedding (forms)
  - Made cookierc parsing more robust.
  - Switched a_UIcmd_save() to take its URL from history (not location bar).
+ - Set prefs.vw_fontname as deafult font for the UI.
    Patches: place (AKA corvid)
 +- Switched SSL-enabled to configure.in (./configure --enable-ssl).
  - Standardised the installation of dpid/dpidrc with auto* tools.
--- a/src/dillo.cc	Sun Nov 09 14:09:09 2008 +0100
+++ b/src/dillo.cc	Mon Nov 10 15:00:04 2008 +0100
@@ -26,6 +26,7 @@
 
 #include <fltk/Window.h>
 #include <fltk/TabGroup.h>
+#include <fltk/Font.h>
 #include <fltk/run.h>
 
 #include "msg.h"
@@ -108,6 +109,12 @@
    // WORKAROUND: sometimes the default pager triggers redraw storms
    fltk::TabGroup::default_pager(fltk::PAGER_SHRINK);
 
+   fltk::Font *dfont = fltk::font(prefs.vw_fontname, 0);
+   if (dfont) {
+      fltk::Widget::default_style->textfont(dfont);
+      fltk::Widget::default_style->labelfont(dfont);
+   }
+
    // Create a new UI/bw pair
    BrowserWindow *bw = a_UIcmd_browser_window_new(0, 0, NULL);