summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-06-03 17:53:46 +0000
committercorvid <corvid@lavabit.com>2011-06-03 17:53:46 +0000
commit6d62b16fa0c74b6f98bacb0a6d0e1c8a53d6fd08 (patch)
tree165e539a4246ca1b1cc8d5d25eab56293cbe4b46
parent7471ce7e3f45e9681c08826fdec64cd6a58298f6 (diff)
smallcaps use the proper enum value
-rw-r--r--dw/fltkplatform.cc2
-rw-r--r--dw/fltkviewbase.cc2
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);