all repos — fluxbox @ df809ea1b2e6fba80ff74359dd0a562bab8d5a20

custom fork of the fluxbox windowmanager

setAntialias
fluxgen fluxgen
commit

df809ea1b2e6fba80ff74359dd0a562bab8d5a20

parent

1222e964167e6b0ebd186e58e2084f95bc4bc75e

2 files changed, 9 insertions(+), 2 deletions(-)

jump to
M src/TextTheme.ccsrc/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.hhsrc/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; }