pygame2.sdlttf.sysfont – SDL_ttf system font loader module

SDL_ttf system font loader module

Module Functions

pygame2.sdlttf.sysfont.get_sys_font(name, size, style=STYLE_NORMAL) → :class:`pyggame2.sdlttf.Font`

Create a pyggame2.sdlttf.Font from system font resources

This will search the system fonts for the given font name. You can also enable bold or italic styles, and the appropriate system font will be selected if available.

Table Of Contents

Previous topic

pygame2.sdlttf.constants – Constants for SDL_ttf

Next topic

pygame2.test – unit tests for Pygame2

This Page