diff options
author | simonb <simonb> | 2007-01-05 13:43:54 (GMT) |
---|---|---|
committer | simonb <simonb> | 2007-01-05 13:43:54 (GMT) |
commit | ad7fd2d8675141925bdef7c29d3392d6ac6b0db0 (patch) | |
tree | 776c13dccaecc0eeb54c514040ac00a74f347a99 /src/FbTk/XftFontImp.hh | |
parent | 3a79de034f87df155f540af2186c5d87dc187b3b (diff) | |
download | fluxbox-ad7fd2d8675141925bdef7c29d3392d6ac6b0db0.zip fluxbox-ad7fd2d8675141925bdef7c29d3392d6ac6b0db0.tar.bz2 |
fix loading of rotated fonts on style change
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; |