IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcSetFont ( const GcFont font  ) 

This function selects a font. The selected font will then be used to put out text. The name and size of the GcFont object, that is being passed to this function must match a font that is in the system's font table. This can be either the system font or a font that has previously been loaded using gcLoadFontFromFile().

Before the first call to gcSetFont() and after gcSetFont() has been called with a NULL pointer, the system font will be used in black color. The system font can also be set manually (and for example with a different color) with the name "System" and a size of 9.

Parameters:
font GcFont object describing the font, that is to be set; NULL to set the system font in black
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcLoadFontFromFile
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