From dd628085d8b71ee72285d7e69b1b05ac2c87e324 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Mon, 12 May 2014 17:28:35 -0400 Subject: [PATCH] Use unicode translations (and thus glyphs) in badges. --- xonstat/batch/badges/skin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2