Drawing a label using pyglet.text.layout.TextLayout(document)

31 Views Asked by At

I would like to draw a label that contains text that has different styles at the beginning and at the end. When drawaing it like

label = pyglet.text.layout.TextLayout('Hello, {bold True}world{bold False}')
label.draw()

It draws the text, but it draws it at the very bottom of the window. How do I set its position?

0

There are 0 best solutions below