From a0ec1cffa6b75030344632083b2b1b63c0cfcf0a Mon Sep 17 00:00:00 2001 From: pixel Date: Sat, 15 Mar 2003 20:54:35 +0000 Subject: Toying --- lib/glfont.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/glfont.cc') 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; -- cgit v1.2.3