aboutsummaryrefslogtreecommitdiff
path: root/src/dillo.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-26 21:09:52 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-26 21:09:52 +0100
commit307159fdc7edda9d12a174ebc7d3e0e5480aed4f (patch)
tree3d58b34d86c042ec916e4bc75d3689387d9b814b /src/dillo.cc
parent954f1b5dea7b6dbdf8208b0ce6576228d121656c (diff)
adapt font-family preferences to match CSS
CSS 2.1 uses the following predefined font names: 'serif', 'sans-serif', 'cursive', 'fantasy', 'monospace'. Add preferences so that the user can set real font names for these. Basically the new "font_sans_serif" option is what "vw_fontame" used to be and "font_monospace" is equivalent to "fw_fontname". The other two options are new.
Diffstat (limited to 'src/dillo.cc')
-rw-r--r--src/dillo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dillo.cc b/src/dillo.cc
index 86b1ffa1..31eeed99 100644
--- a/src/dillo.cc
+++ b/src/dillo.cc
@@ -287,7 +287,7 @@ int main(int argc, char **argv)
fltk::TabGroup::default_pager(fltk::PAGER_SHRINK);
/* use preferred font for UI */
- fltk::Font *dfont = fltk::font(prefs.vw_fontname, 0);
+ fltk::Font *dfont = fltk::font(prefs.font_sans_serif, 0);
if (dfont) {
fltk::Widget::default_style->textfont(dfont);
fltk::Widget::default_style->labelfont(dfont);