From 19d464d591f664ebce4472f706d6c01a5774501c Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 18 Jul 2009 00:40:59 +0000 Subject: dead key workaround --- (limited to 'tasprites.py') diff --git a/tasprites.py b/tasprites.py index 08c5f83..b4fc67a 100644 --- a/tasprites.py +++ b/tasprites.py @@ -133,8 +133,10 @@ def hit(spr,pos): def draw_label(spr, label, myscale, center_flag): fd = pango.FontDescription('Sans') fd.set_size(int(myscale*spr.tw.scale*pango.SCALE)) + # print label + # print type(label) if type(label) == str or type(label) == unicode: - pl = spr.tw.window.create_pango_layout(str(label)) + pl = spr.tw.window.create_pango_layout(label.replace("\0"," ")) pl.set_font_description(fd) if center_flag: swidth = pl.get_size()[0]/pango.SCALE -- cgit v0.9.1