From df809ea1b2e6fba80ff74359dd0a562bab8d5a20 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 13 Aug 2003 09:54:50 +0000 Subject: setAntialias --- src/TextTheme.cc | 7 ++++++- src/TextTheme.hh | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/TextTheme.cc b/src/TextTheme.cc index b54adcf..264975f 100644 --- a/src/TextTheme.cc +++ b/src/TextTheme.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: TextTheme.cc,v 1.2 2003/08/12 00:20:47 fluxgen Exp $ +// $Id: TextTheme.cc,v 1.3 2003/08/13 09:54:50 fluxgen Exp $ #include "TextTheme.hh" @@ -52,3 +52,8 @@ void TextTheme::update() { XChangeGC(FbTk::App::instance()->display(), m_text_gc, GCForeground, &gcv); } + +void TextTheme::setAntialias(bool value) { + font().setAntialias(value); + FbTk::ThemeManager::instance().loadItem(m_font); +} diff --git a/src/TextTheme.hh b/src/TextTheme.hh index 21d4f1b..0764aca 100644 --- a/src/TextTheme.hh +++ b/src/TextTheme.hh @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: TextTheme.hh,v 1.1 2003/08/11 14:28:38 fluxgen Exp $ +// $Id: TextTheme.hh,v 1.2 2003/08/13 09:54:30 fluxgen Exp $ #ifndef TEXTTHEME_HH #define TEXTTHEME_HH @@ -37,6 +37,8 @@ public: void update(); + void setAntialias(bool value); + FbTk::Font &font() { return *m_font; } const FbTk::Font &font() const { return *m_font; } const FbTk::Color &textColor() const { return *m_text_color; } -- cgit v0.11.2