next up previous contents
Next: Load every font Up: Font engine Previous: Drawing a font   Contents


Load a font

Before using a font, you have to load the font. In fact, it simply search the FONT variable, gets its handle, locks it, and fills the !h_Font! structure.


\begin{lstlisting}
typedef struct {
HANDLE h;
unsigned char filename[18];
uns...
...unsigned char * xTable;
unsigned char * spriteTable;
} h_Font;
\end{lstlisting}

So, because it locks the handle, you have to unload a font before leaving your software: use the macro !h_unloadFont(font)! to do it.



2006-02-19