[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] problem with pygame.font and symbol °



Hi,
I have a little problem
I must render a digit value in my application using font
the code is:

def ReadValue():
    a= ...
    ...
    return int(a)

myfont = pygame.font.Font(None, 20)
angle = ReadValue()
LabelSurface = myfont.render("angle: "+str(angle)+"°", True, [255,255,255])
screen.blit(LabelSurface, [0,0])


the problem is that (assuming angle is 30) I can't see
angle: 30°
but
angle: 30°
 
How can I do to render only ° withouth  ?
Thanks
Vittorio