From: Severin Meyer Date: Tue, 11 Oct 2016 14:09:05 +0000 (+0200) Subject: Add font hinting options for ttf version of Xolonium 4.0 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ff89011c335c752e464413eb9abc9dac5c4199fd;p=xonotic%2Fxonstat.git Add font hinting options for ttf version of Xolonium 4.0 --- diff --git a/xonstat/batch/badges/skin.py b/xonstat/batch/badges/skin.py index 6cd310d..3b5b13b 100644 --- a/xonstat/batch/badges/skin.py +++ b/xonstat/batch/badges/skin.py @@ -223,6 +223,13 @@ class Skin: self.ctx = ctx ctx.set_antialias(C.ANTIALIAS_GRAY) + # set font hinting options + fo = C.FontOptions() + fo.set_antialias(C.ANTIALIAS_GRAY) + fo.set_hint_style(C.HINT_STYLE_FULL) + fo.set_hint_metrics(C.HINT_METRICS_ON) + ctx.set_font_options(fo) + # draw background if self.bg == None: if self.bgcolor != None: