[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Font height



On 5/10/06, Mike Wyatt <mwyatt@xxxxxxxxx> wrote:
The height values vary for different fonts (verdana, courier, times, system), but there is always a band of empty space above the text.

The only solution I can think of is to come up with some formula to determine the number of pixels to move the text rendering up.  It seems as though the formula would be different for each font, though.


I'm playing with something to help me figure out & play with all the font positioning stuff, but the first thing I noticed is that the font.size func is returning the same size as the rendered surface, for me. (I'm using pygame 1.6 over python 2.3).