setAntialias
fluxgen fluxgen
2 files changed,
9 insertions(+),
2 deletions(-)
M
src/TextTheme.cc
→
src/TextTheme.cc
@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ gcv.foreground = m_text_color->pixel();
XChangeGC(FbTk::App::instance()->display(), m_text_gc, GCForeground, &gcv); } + +void TextTheme::setAntialias(bool value) { + font().setAntialias(value); + FbTk::ThemeManager::instance().loadItem(m_font); +}
M
src/TextTheme.hh
→
src/TextTheme.hh
@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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@@ -36,6 +36,8 @@ TextTheme(FbTk::Theme &theme, const std::string &name, const std::string &altname);
virtual ~TextTheme(); void update(); + + void setAntialias(bool value); FbTk::Font &font() { return *m_font; } const FbTk::Font &font() const { return *m_font; }