From: Ant Zucaro Date: Mon, 12 May 2014 21:28:35 +0000 (-0400) Subject: Use unicode translations (and thus glyphs) in badges. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dd628085d8b71ee72285d7e69b1b05ac2c87e324;p=xonotic%2Fxonstat.git Use unicode translations (and thus glyphs) in badges. --- diff --git a/xonstat/batch/badges/skin.py b/xonstat/batch/badges/skin.py index edcb2eb..6cd310d 100644 --- a/xonstat/batch/badges/skin.py +++ b/xonstat/batch/badges/skin.py @@ -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