From 307159fdc7edda9d12a174ebc7d3e0e5480aed4f Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 26 Jan 2009 21:09:52 +0100 Subject: 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. --- src/web.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web.cc') diff --git a/src/web.cc b/src/web.cc index ba5d90a1..72071fc2 100644 --- a/src/web.cc +++ b/src/web.cc @@ -72,7 +72,7 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web, return -1; /* Set a style for the widget */ - fontAttrs.name = prefs.vw_fontname; + fontAttrs.name = prefs.font_sans_serif; fontAttrs.size = (int) rint(14.0 * prefs.font_factor); fontAttrs.weight = 400; fontAttrs.style = style::FONT_STYLE_NORMAL; -- cgit v1.2.3