diff options
-rw-r--r-- | dw/fltkplatform.cc | 2 | ||||
-rw-r--r-- | dw/fltkviewbase.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dw/fltkplatform.cc b/dw/fltkplatform.cc index 17eb5d51..0b0f156a 100644 --- a/dw/fltkplatform.cc +++ b/dw/fltkplatform.cc @@ -359,7 +359,7 @@ int FltkPlatform::textWidth (core::style::Font *font, const char *text, FltkFont *ff = (FltkFont*) font; int curr = 0, next = 0, nb; - if (font->fontVariant == 1) { + if (font->fontVariant == core::style::FONT_VARIANT_SMALL_CAPS) { int sc_fontsize = lout::misc::roundInt(ff->size * 0.78); for (curr = 0; next < len; curr = next) { next = nextGlyph(text, curr); diff --git a/dw/fltkviewbase.cc b/dw/fltkviewbase.cc index cab22cf4..06e0cbc8 100644 --- a/dw/fltkviewbase.cc +++ b/dw/fltkviewbase.cc @@ -530,7 +530,7 @@ void FltkWidgetView::drawText (core::style::Font *font, char chbuf[4]; wchar_t wc, wcu; - if (font->fontVariant == 1) { + if (font->fontVariant == core::style::FONT_VARIANT_SMALL_CAPS) { int sc_fontsize = lout::misc::roundInt(ff->size * 0.78); for (curr = 0; next < len; curr = next) { next = theLayout->nextGlyph(text, curr); |