Using More Than One Font

The examples presented so far have not used the font handle returned by fgf_load() except to check if the font file was loaded successfully. When a program loads just one font, it's not necessary to use the font handle for other purposes because that font is always the current font. However, if we need to use more than one font, the font handle becomes more important because we must use it to reference the different loaded fonts. The fgf_select() function, which accepts a font handle as its only parameter, makes the font associated with that handle the current font.

<< Prev

Next >>

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.