diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-11-17 21:41:04 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-11-17 21:41:04 +0100 |
commit | e086ba408da281bbac5ac222371bf3b9626d6968 (patch) | |
tree | 93beace3dff603eb0166fb3e5ebd6b25b766fd87 /dw/fltkplatform.cc | |
parent | 27c5e68d73ba6ad4c65b21865fb1a5f6734a1a6c (diff) |
properly handle comma separated lists of font names in CSS
Diffstat (limited to 'dw/fltkplatform.cc')
-rw-r--r-- | dw/fltkplatform.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dw/fltkplatform.cc b/dw/fltkplatform.cc index 56a73a19..b9aa6bd8 100644 --- a/dw/fltkplatform.cc +++ b/dw/fltkplatform.cc @@ -83,6 +83,12 @@ FltkFont::~FltkFont () fontsTable->remove (this); } +bool +FltkPlatform::fontExists (const char *name) +{ + return ::fltk::font(name) != NULL; +} + FltkFont* FltkFont::create (core::style::FontAttrs *attrs) { |