Spina Giovanni Vittorio
2014-05-14 16:08:08 UTC
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
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