Fonts

Fonts in the pygamelib are nothing more than a specially organized sprite collection.

The way to use it is extremely simple: you instantiate a Font object and ask it to load the data from a specific font.

For example to load the 8bits font, you do:

Example::

from pygamelib.gfx import core

my_font = core.Font(‘8bits’)

That’s it! The you can use it to format Text objects.