1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
6 #include "truerendercontrol.hh"
10 #define _XFT_NO_COMPAT_ // no Xft 1 API
11 #include <X11/Xft/Xft.h>
26 static bool _xft_init;
30 std::string _fontstring;
33 unsigned char _offset;
38 bool createXftFont(void);
42 Font(int screen_num, const std::string &fontstring, bool shadow,
43 unsigned char offset, unsigned char tint);
46 inline const std::string &fontstring() const { return _fontstring; }
49 int maxCharWidth() const;
51 int measureString(const ustring &string) const;
53 // The RenderControl classes use the internal data to render the fonts, but
54 // noone else needs it, so its private.
55 friend class RenderControl;