]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Add font hinting options for ttf version of Xolonium 4.0
authorSeverin Meyer <sev.ch@web.de>
Tue, 11 Oct 2016 14:09:05 +0000 (16:09 +0200)
committerSeverin Meyer <sev.ch@web.de>
Tue, 11 Oct 2016 14:09:05 +0000 (16:09 +0200)
xonstat/batch/badges/skin.py

index 6cd310dffdb89967083e9a8bbfecc48331563cdb..3b5b13b3286f491da07b8cc351f4ff56f4c27d25 100644 (file)
@@ -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: