summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfont_x11.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-07-05 17:38:51 +0200
committerTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-07-08 13:05:44 +0200
commit6d5655089fa4e2231a1a8edc98ecbb6b29e344e1 (patch)
treebd6c9a184fc6e2f1a74416248383a2af0543a788 /src/gui/text/qfont_x11.cpp
parentebf175b3d68e28cd808204adaba1ec8942ac5a8f (diff)
Add three new style-hints to QFont to match CSS' generic font families
The defaults were chosen to match major web browsers. See: http://xhva.net/log/?p=160 Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui/text/qfont_x11.cpp')
-rw-r--r--src/gui/text/qfont_x11.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/text/qfont_x11.cpp b/src/gui/text/qfont_x11.cpp
index 39127dc9ec..92e2326795 100644
--- a/src/gui/text/qfont_x11.cpp
+++ b/src/gui/text/qfont_x11.cpp
@@ -281,6 +281,15 @@ QString QFont::defaultFamily() const
case QFont::Courier:
return QString::fromLatin1("Courier");
+ case QFont::Monospace:
+ return QString::fromLatin1("Courier New");
+
+ case QFont::Cursive:
+ return QString::fromLatin1("Comic Sans MS");
+
+ case QFont::Fantasy:
+ return QString::fromLatin1("Impact");
+
case QFont::Decorative:
return QString::fromLatin1("Old English");