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

Re: [pygame] How the get a font size




On Jan 11, 2009, at 10:50 AM, Ian Mallett wrote:

As far as I know, there's no way to get the size of the font that way. What I do is name the font names in an intuitive way:
Font12 = pygame.font.Font("....", 12)
Font18 = pygame.font.Font("....", 18)
Font36 = pygame.font.Font("....", 36)
Ian

fonts = {
	12: pygame....,
	18: pygame....,
	36: pygame....,
}

Not to be logical or something.

--Noah