diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-26 21:09:52 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-26 21:09:52 +0100 |
commit | 307159fdc7edda9d12a174ebc7d3e0e5480aed4f (patch) | |
tree | 3d58b34d86c042ec916e4bc75d3689387d9b814b /src/plain.cc | |
parent | 954f1b5dea7b6dbdf8208b0ce6576228d121656c (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/plain.cc')
-rw-r--r-- | src/plain.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plain.cc b/src/plain.cc index 8826dafe..1295f99f 100644 --- a/src/plain.cc +++ b/src/plain.cc @@ -99,7 +99,7 @@ DilloPlain::DilloPlain(BrowserWindow *p_bw, const DilloUrl *p_url) state = ST_SeekingEol; /* Create the font and attribute for the page. */ - fontAttrs.name = prefs.fw_fontname; + fontAttrs.name = prefs.font_monospace; fontAttrs.size = (int) rint(14.0 * prefs.font_factor); fontAttrs.weight = 400; fontAttrs.style = style::FONT_STYLE_NORMAL; |