diff options
Diffstat (limited to 'src/FbTk/XftFontImp.hh')
-rw-r--r-- | src/FbTk/XftFontImp.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FbTk/XftFontImp.hh b/src/FbTk/XftFontImp.hh index 14e9712..178ef3a 100644 --- a/src/FbTk/XftFontImp.hh +++ b/src/FbTk/XftFontImp.hh | |||
@@ -36,7 +36,7 @@ public: | |||
36 | XftFontImp(const char *fontname, bool utf8); | 36 | XftFontImp(const char *fontname, bool utf8); |
37 | ~XftFontImp(); | 37 | ~XftFontImp(); |
38 | bool load(const std::string &name); | 38 | bool load(const std::string &name); |
39 | void drawText(const FbDrawable &w, int screen, GC gc, const FbString &text, size_t len, int x, int y , FbTk::Orientation orient) const; | 39 | void drawText(const FbDrawable &w, int screen, GC gc, const FbString &text, size_t len, int x, int y , FbTk::Orientation orient); |
40 | unsigned int textWidth(const FbString &text, unsigned int len) const; | 40 | unsigned int textWidth(const FbString &text, unsigned int len) const; |
41 | unsigned int height() const; | 41 | unsigned int height() const; |
42 | int ascent() const { return m_xftfonts[0] ? m_xftfonts[0]->ascent : 0; } | 42 | int ascent() const { return m_xftfonts[0] ? m_xftfonts[0]->ascent : 0; } |
@@ -47,6 +47,7 @@ public: | |||
47 | 47 | ||
48 | private: | 48 | private: |
49 | XftFont *m_xftfonts[4]; // 4 possible orientations | 49 | XftFont *m_xftfonts[4]; // 4 possible orientations |
50 | bool m_xftfonts_loaded[4]; // whether we've tried loading the orientation | ||
50 | // rotated xft fonts don't give proper extents info, so we keep the "real" | 51 | // rotated xft fonts don't give proper extents info, so we keep the "real" |
51 | // one around for it | 52 | // one around for it |
52 | bool m_utf8mode; | 53 | bool m_utf8mode; |