From 6d62b16fa0c74b6f98bacb0a6d0e1c8a53d6fd08 Mon Sep 17 00:00:00 2001 From: corvid Date: Fri, 3 Jun 2011 17:53:46 +0000 Subject: smallcaps use the proper enum value --- dw/fltkplatform.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dw/fltkplatform.cc') 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); -- cgit v1.2.3