line_height

11 views
Skip to first unread message

infinite8s

unread,
Jul 13, 2008, 11:12:34 PM7/13/08
to pyglet-users

The old pyglet.font.Text had a line_height variable, which was the
height of 1 line of text. I can't seem to find this property in the
new pyglet.font.Text or pyglet.text.Label. Is it accessible anywhere?

Alex Holkner

unread,
Jul 20, 2008, 3:12:12 PM7/20/08
to pyglet...@googlegroups.com

Thanks, I've added the line_height (and leading) properties back into
pyglet.font.Text in r2130.

For new-style Labels, use the "leading" style and "ascent" and
"descent" attributes of the font to calculate the line height.

Alex.

Reply all
Reply to author
Forward
0 new messages