summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-11-10 15:00:04 +0100
committerjcid <devnull@localhost>2008-11-10 15:00:04 +0100
commit738baf46845187b39922573816922281ca276f14 (patch)
treedd31f75ad19cffed89af7f7167c800231e7cda77
parent1685afb2c6fc9570dc841ff5f5099cec9124252b (diff)
- Set prefs.vw_fontname as deafult font for the UI.
-rw-r--r--ChangeLog1
-rw-r--r--src/dillo.cc7
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f3e13f45..16c88689 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@ dillo-2.1
- 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.
diff --git a/src/dillo.cc b/src/dillo.cc
index 7e29ac32..c20d1f02 100644
--- a/src/dillo.cc
+++ b/src/dillo.cc
@@ -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 @@ int main(int argc, char **argv)
// 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);