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


Load every font

Another way to load font is to use the !h_loadAllFont! function. It search in the Ti every FONT variable and store the !h_Font! structures in a table. Then when you want a specific font, you just have to use !h_findFont! which return the index of the table of the font you want.

The table is described by the folowing structure:


\begin{lstlisting}
typedef struct {
h_Font * tab;
short nb;
} h_FontTab;
\end{lstlisting}

By this way too, you have to unload every FONT by using the macro !h_unloadAllFont(fonttab)!.



2006-02-19