diff options
Diffstat (limited to 'lib/glfont.cc')
-rw-r--r-- | lib/glfont.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/glfont.cc b/lib/glfont.cc index d8dbb5b..9b77c8c 100644 --- a/lib/glfont.cc +++ b/lib/glfont.cc @@ -77,7 +77,7 @@ nbT = number of textures */ -mogltk::font::font(Handle * ffont) : textcolor(255, 255, 255, 255) { +mogltk::font::font(Handle * ffont) : textcolor(255, 255, 255, 255), shadow(0), wspace(0) { int i; nbentries = ffont->readU16(); @@ -210,7 +210,7 @@ void mogltk::font::putcursor(int x, int y) { void mogltk::font::putentry(Uint16 entry, ColorP c) { drawentry(entry, cx, cy, c); - cx += sizes[entry]; + cx += sizes[entry] + wspace; } void mogltk::font::putchar(char ch, ColorP c) { @@ -298,6 +298,10 @@ void mogltk::font::setshadow(int s) { shadow = s; } +void mogltk::font::setwspace(int w) { + wspace = w; +} + int mogltk::font::singletextsize(const String & s) const { unsigned int i; int r = 0; |