..NAV

retrogamelib.font

The font module includes a Font object for both the NES and GameBoy fonts. It works similarly to pygame's font module.
font.Font(object)
__init__(font, color=(255, 255, 255))
Initialise a new Font object. font should be one of the font constants. color should be an RGB tuple for the color of the font.
render(text) -> return pygame.Surface
Renders a string of text. Returns a pygame.Surface.
get_width() -> return int
Returns the width of a single font char.
get_height() -> return int
Returns the height of a single font char.


Copyright © 2009, pymike and saluk