summaryrefslogtreecommitdiff
path: root/otk/font.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-23 01:44:01 +0000
committerDana Jansens <danakj@orodu.net>2003-01-23 01:44:01 +0000
commite64d90be4d5b86a497ed8f03c6ba40512765e239 (patch)
treef3f8cc2e621363633f4c28d54fd0a353573c394f /otk/font.cc
parent46441f7d60c008b11a170516734ae7a5932a738e (diff)
new render system in effect. now ot make it look right
Diffstat (limited to 'otk/font.cc')
-rw-r--r--otk/font.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/otk/font.cc b/otk/font.cc
index 21b9bfb0..4fc09fcf 100644
--- a/otk/font.cc
+++ b/otk/font.cc
@@ -82,7 +82,7 @@ Font::~Font(void)
}
-unsigned int Font::measureString(const ustring &string) const
+int Font::measureString(const ustring &string) const
{
XGlyphInfo info;
@@ -93,19 +93,19 @@ unsigned int Font::measureString(const ustring &string) const
XftTextExtents8(**display, _xftfont,
(FcChar8*)string.c_str(), string.bytes(), &info);
- return info.xOff + (_shadow ? _offset : 0);
+ return (signed) info.xOff + (_shadow ? _offset : 0);
}
-unsigned int Font::height(void) const
+int Font::height(void) const
{
- return _xftfont->height + (_shadow ? _offset : 0);
+ return (signed) _xftfont->height + (_shadow ? _offset : 0);
}
-unsigned int Font::maxCharWidth(void) const
+int Font::maxCharWidth(void) const
{
- return _xftfont->max_advance_width;
+ return (signed) _xftfont->max_advance_width;
}
}