summaryrefslogtreecommitdiff
path: root/lib/glfont.cc
diff options
context:
space:
mode:
authorpixel <pixel>2003-03-15 20:54:35 +0000
committerpixel <pixel>2003-03-15 20:54:35 +0000
commita0ec1cffa6b75030344632083b2b1b63c0cfcf0a (patch)
tree9f8f02708502d9774d6d089e62a3f23ad30162b0 /lib/glfont.cc
parent9e10d2993989a4f6d1b72a8c9d5f7480b0c0f006 (diff)
Toying
Diffstat (limited to 'lib/glfont.cc')
-rw-r--r--lib/glfont.cc8
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;