aboutsummaryrefslogtreecommitdiff
path: root/src/dillo.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-06-09 21:23:44 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-06-09 21:23:44 +0200
commitaae5d97ef2e42dac3bde67d800b3069ecb74f3fc (patch)
treee7c80740f8f38f18a798b0a793f338515c9f7101 /src/dillo.cc
parentd0731e9ff6d6b8ce395605f9a01fb723073fc7ce (diff)
switch fltk font handling to Fl::get_font_name() entirely
This seems to give more consitent results when xft is disabled.
Diffstat (limited to 'src/dillo.cc')
-rw-r--r--src/dillo.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dillo.cc b/src/dillo.cc
index dad778d3..e5fca5c5 100644
--- a/src/dillo.cc
+++ b/src/dillo.cc
@@ -374,9 +374,10 @@ int main(int argc, char **argv)
checkPreferredFonts();
/* use preferred font for UI */
- Fl::set_font(FL_HELVETICA, prefs.font_sans_serif); // this seems to be the
- // only way to set the
- // default font in fltk1.3
+ Fl_Font defaultFont = dw::fltk::FltkFont::get (prefs.font_sans_serif, 0);
+ Fl::set_font(FL_HELVETICA, defaultFont); // this seems to be the
+ // only way to set the
+ // default font in fltk1.3
// Create a new UI/bw pair
BrowserWindow *bw = a_UIcmd_browser_window_new(0, 0, xid, NULL);