__init__(self,
font,
color=(255, 255, 255),
antialias=True,
spacing=0)
(Constructor)
Create a new GLFont wrapper around a Pygame Font.
font - a pygame font object to be converted into an opengl font
OR a (fontname, fontsize) tuple
color - color of the rendered font (default white)
antialias - antialias flag (default True)
Creating a font by its name will first try to load the font from current
working directory and if that fails, it looks for the font in system fonts.
NOTE: The color parameter should be considered deprecated at this point.
It's better to leave the font color white, and change the color of individual
TextEntities instead.
-
- Overrides:
__builtin__.object.__init__
|