PDA

View Full Version : I lost my degree sign



fwest
01-15-2005, 06:51 AM
Never upgrade just before an important demonstration! I know it, but did it anyway.

I had nice degree signs on my display, but now they are replaced by '*', and I have no idea why.

The code:

s=u"%3d\xb0" % (a)
for c in s:
ci=ord(c)
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18,ci)
print cThe 'print c' is just added for testing: that works fine. Only glut fails (or can it be something else?)

s=u'%3d\N{DEGREE SIGN}' % (a)
fails the same way

The details:
Debian Testing (yesterday)
Python2.3 Version: 2.3.3-5
Package: libglut3 Version: 3.7-22
(need anything else?)

Help is very much appreciated!
Thanks!

nigels
01-20-2005, 07:59 PM
It appears that the degree symbol is
supported by OpenGLUT bitmap fonts:

http://openglut.sourceforge.net/group__bitmapfont.html

Cheers,

Nigel Stewart