diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-08 04:40:34 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-08 04:40:34 +0000 |
| commit | 20bc088a998a362977233086577d74d00eea8765 (patch) | |
| tree | 8d4e1676c694b95b09e83a8b1dccdaefe2952dee /src/Font.hh | |
| parent | 858af98b904f21fe03acfd565be2e7b13d93a19c (diff) | |
add option to the rc file to use/not use AA for Xft fonts
Diffstat (limited to 'src/Font.hh')
| -rw-r--r-- | src/Font.hh | 8 |
1 files changed, 3 insertions, 5 deletions
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); |
