aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkplatform.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-07-18 20:52:00 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-07-18 20:52:00 +0200
commit74177a9f71b9f78ebdf4fcce2bf548c68f5d8258 (patch)
tree8fbe3e08630fa7e84788d8044a487620c59207f4 /dw/fltkplatform.hh
parentfa8b2f7a2a05de229819a9743c1fc67dca3ae8e9 (diff)
prefer fontFamily over fontStyle should a desired font not exist
This fixes missing characters on chinese websites if there specfied font has no italic variant.
Diffstat (limited to 'dw/fltkplatform.hh')
-rw-r--r--dw/fltkplatform.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/fltkplatform.hh b/dw/fltkplatform.hh
index 7c8bd366..db4bc794 100644
--- a/dw/fltkplatform.hh
+++ b/dw/fltkplatform.hh
@@ -17,7 +17,8 @@ class FltkFont: public core::style::Font
class FontFamily: public lout::object::Object {
Fl_Font font[4];
public:
- FontFamily ();
+ FontFamily (Fl_Font fontNormal, Fl_Font fontBold,
+ Fl_Font fontItalic, Fl_Font fontBoldItalic);
void set (Fl_Font, int attrs);
Fl_Font get (int attrs);
};