diff options
author | corvid <corvid@lavabit.com> | 2010-11-24 19:26:45 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-11-24 19:26:45 +0000 |
commit | 58cb0cbc32a4e464d7f2601a872cc308bf5dd45b (patch) | |
tree | fc2519fe9164a6f4eaaa1df1f33ef08a76e174ae /dw/fltkplatform.cc | |
parent | 9ca5a62164a183247bb01b63456144f453349c33 (diff) |
trim some spaces
Diffstat (limited to 'dw/fltkplatform.cc')
-rw-r--r-- | dw/fltkplatform.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/fltkplatform.cc b/dw/fltkplatform.cc index 010aa113..17eb5d51 100644 --- a/dw/fltkplatform.cc +++ b/dw/fltkplatform.cc @@ -358,7 +358,7 @@ int FltkPlatform::textWidth (core::style::Font *font, const char *text, int width = 0; FltkFont *ff = (FltkFont*) font; int curr = 0, next = 0, nb; - + if (font->fontVariant == 1) { int sc_fontsize = lout::misc::roundInt(ff->size * 0.78); for (curr = 0; next < len; curr = next) { @@ -380,10 +380,10 @@ int FltkPlatform::textWidth (core::style::Font *font, const char *text, } else { setfont (ff->font, ff->size); width = (int) getwidth (text, len); - + if (font->letterSpacing) { int curr = 0, next = 0; - + while (next < len) { next = nextGlyph(text, curr); width += font->letterSpacing; |