aboutsummaryrefslogtreecommitdiff
path: root/src/XftFontImp.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/XftFontImp.hh')
-rw-r--r--src/XftFontImp.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/XftFontImp.hh b/src/XftFontImp.hh
index 5cfc6ee..d03e65a 100644
--- a/src/XftFontImp.hh
+++ b/src/XftFontImp.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22//$Id: XftFontImp.hh,v 1.2 2002/10/15 16:44:26 fluxgen Exp $ 22//$Id: XftFontImp.hh,v 1.3 2002/10/16 23:13:54 fluxgen Exp $
23 23
24#ifndef XFTFONTIMP_HH 24#ifndef XFTFONTIMP_HH
25#define XFTFONTIMP_HH 25#define XFTFONTIMP_HH
@@ -29,15 +29,16 @@
29 29
30class XftFontImp:public FbTk::FontImp { 30class XftFontImp:public FbTk::FontImp {
31public: 31public:
32 explicit XftFontImp(const char *fontname=0); 32 XftFontImp(const char *fontname, bool utf8);
33 ~XftFontImp(); 33 ~XftFontImp();
34 bool load(const std::string &name); 34 bool load(const std::string &name);
35 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; 35 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const;
36 unsigned int textWidth(const char *text, unsigned int len) const; 36 unsigned int textWidth(const char * const text, unsigned int len) const;
37 unsigned int height() const; 37 unsigned int height() const;
38 bool loaded() const { return m_xftfont != 0; } 38 bool loaded() const { return m_xftfont != 0; }
39private: 39private:
40 XftFont *m_xftfont; 40 XftFont *m_xftfont;
41 bool m_utf8mode;
41}; 42};
42 43
43#endif // XFTFONTIMP_HH 44#endif // XFTFONTIMP_HH