]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Use unicode translations (and thus glyphs) in badges.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 12 May 2014 21:28:35 +0000 (17:28 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 12 May 2014 21:28:35 +0000 (17:28 -0400)
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
         ## 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
         #chars = []
         #for c in qstr:
         #    # replace weird characters that make problems - TODO