Did you load a font that supports unicode? (I don't know anything
about the internals of pyglet.font, but that seems like a good place
to start)
~ Nathan
pyglet's text rendering will accept a unicode string for rendering just fine.
In some instances your selected font may not support certain glyphs so you'll
see a placeholder glyph instead.
Try this:
import pyglet
t = pyglet.text.Label(u'\u20ac')
w = pyglet.window.Window()
@w.event
def on_draw():
t.draw()
pyglet.app.run()
It should render a Euro symbol in the bottom-left of the window.
Richard
ps. if you don't know about unicode and utf8 or other text encoding then I
suggest you read something like:
http://www.amk.ca/python/howto/unicode
http://www.jorendorff.com/articles/unicode/python.html
http://wiki.laptop.org/go/Python_Unicode
Richard
Sorry, there's no bidi (bidirectional text) support in pyglet...
you're the first person who's asked for it. If this is an important
issue for you I'd like to work with you to get support in for pyglet
1.2 later this year (I don't read or write any right-to-left
languages, so I need someone to check correctness).
Alex.