]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/batch/badges/skin.py
Use unicode translations (and thus glyphs) in badges.
[xonotic/xonstat.git] / xonstat / batch / badges / skin.py
index edcb2eb4acde76cff706f71b9008abac03d05e73..6cd310dffdb89967083e9a8bbfecc48331563cdb 100644 (file)
@@ -269,7 +269,9 @@ class Skin:
         ## draw player's nickname with fancy colors
 
         # deocde nick, strip all weird-looking characters
-        qstr = qfont_decode(player.nick).replace('^^', '^').replace(u'\x00', '')
+        qstr = qfont_decode(qstr=player.nick, glyph_translation=True).\
+                replace('^^', '^').\
+                replace(u'\x00', '')
         #chars = []
         #for c in qstr:
         #    # replace weird characters that make problems - TODO