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?
On 7/14/08, infinite8s <naveen.michaudagra...@gmail.com> wrote:
> 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?
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.