IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcLoadFontFromFile ( GcFont font,
const char *  path 
)

This function can be used to load a font from the file system and insert it into the font table. After that the font can be used. The font file must be a Beck Graphics Font file (extension .bgf). Before loading any font from the file system you can only use the system font.

Parameters:
font This is an optional output parameter. If you pass the pointer to a GcFont object here, it will be filled with the loaded font's properties. This object can then be used to select the loaded font with gcSetFont(). Note that you must initialise the GcFont::structVer field prior to passing the object to this function.
path Path of the font file that is to be loaded
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcSetFont
Examples:
example05.c.





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Jun 27 14:21:34 2017 by Doxygen 1.6.1