VgaGames4

VgaGames4 - font man-pages

[.. upper level ..]

# vg4->font->load()

Load font.

SYNTAX
struct VG_Font * vg4->font->load(const char *fontname)
FUNCTION PARAMETERS

fontname | Fontname, or NULL = default font

RETURN VALUE
Returns loaded font or NULL = Error
DESCRIPTION
Load font. The font will be loaded only once. The font will be loaded from the font path of VgaGames. With vg4->font->path() a path can be set for user-created fonts. Following system fonts are included: - sys:high = proportional for VG_WINDOW_SIZE_HIGH - sys:low = proportional for VG_WINDOW_SIZE_LOW - sysw:high = non-proportional for VG_WINDOW_SIZE_HIGH - sysw:low = non-proportional for VG_WINDOW_SIZE_LOW The default font is sys:low for VG_WINDOW_SIZE_LOW and sys:high for VG_WINDOW_SIZE_HIGH.
SEE ALSO
vg4->font->path()