X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FFont.hh;h=9f083db9d306845afa68e0e04de9441dfd71234f;hb=20bc088a998a362977233086577d74d00eea8765;hp=07712794031187d4327187c8faf2ec7dc4e34b11;hpb=1618ecc845e9191a383ea9ffd1e6ab7e31caec15;p=chaz%2Fopenbox diff --git a/src/Font.hh b/src/Font.hh index 07712794..9f083db9 100644 --- a/src/Font.hh +++ b/src/Font.hh @@ -47,13 +47,9 @@ class BFont { * static members */ private: - static bool _antialias; static std::string _fallback_font; public: - inline static bool antialias(void) { return _antialias; } - inline static void setAntialias(bool a) { _antialias = a; } - // the fallback is only used for X fonts, not for Xft fonts, since it is // assumed that X fonts will be the fallback from Xft. inline static std::string fallbackFont(void) { return _fallback_font; } @@ -74,6 +70,8 @@ private: bool _italic; #ifdef XFT + bool _antialias; + XftFont *_xftfont; bool createXftFont(void); @@ -97,7 +95,7 @@ public: #ifdef XFT // loads an Xft font BFont(Display *d, BScreen *screen, const std::string &family, int size, - bool bold, bool italic); + bool bold, bool italic, bool antialias = True); #endif // loads a standard X font BFont(Display *d, BScreen *screen, const std::string &xlfd);