X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FFont.hh;h=e29f41b114550ae6aa039cfb0b03b99624617bfb;hb=ce5313528ead2692adfdfb41cf5e65dafcc0bc64;hp=07712794031187d4327187c8faf2ec7dc4e34b11;hpb=1618ecc845e9191a383ea9ffd1e6ab7e31caec15;p=chaz%2Fopenbox diff --git a/src/Font.hh b/src/Font.hh index 07712794..e29f41b1 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,9 @@ private: bool _italic; #ifdef XFT + bool _antialias; + bool _shadow; + XftFont *_xftfont; bool createXftFont(void); @@ -97,7 +96,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 shadow, bool antialias = True); #endif // loads a standard X font BFont(Display *d, BScreen *screen, const std::string &xlfd);