![]() |
MHEG5
22.11.0
|
Font file handling with the Freetype. More...
#include "techtype.h"
Go to the source code of this file.
Classes | |
struct | s_FontMetrics |
Typedefs | |
typedef struct sFontSize * | H_FontSize |
typedef struct s_FontMetrics | S_FontMetrics |
Functions | |
BOOLEAN | MG_FontInit (BOOLEAN isHD) |
Initialise freetype library and load "built-in" font. More... | |
void | MG_SetMaxFonts (U16BIT max) |
Set Max allowable fonts for profile. More... | |
void | MG_FontExit (void) |
Free all data associated with built-in font and terminate freetype library. More... | |
S16BIT | MG_FontLoadFile (const U8BIT *data, U32BIT length) |
Load font data file into memory for freetype. More... | |
H_FontSize | MG_AllocateFont (S16BIT fnt_index, U8BIT fnt_size, U8BIT fnt_style) |
Allocate font of particular size from font file. More... | |
void | MG_ReleaseFont (H_FontSize f_sz) |
Allocate font of particular size from font file. More... | |
void | MG_GetFontMetrics (H_FontSize f_sz, S_FontMetrics *pMetrics) |
Get font Metrics. More... | |
void | MG_FontFreeFile (S16BIT font_index) |
free memory associated with file More... | |
Font file handling with the Freetype.
H_FontSize MG_AllocateFont | ( | S16BIT | fnt_index, |
U8BIT | fnt_size, | ||
U8BIT | fnt_style | ||
) |
Allocate font of particular size from font file.
font_index | index into MG's font array - from MG_FontLoadFile() |
font_size | size in points |
void MG_FontExit | ( | void | ) |
Free all data associated with built-in font and terminate freetype library.
n/a |
void MG_FontFreeFile | ( | S16BIT | font_index | ) |
free memory associated with file
font_index | index into MG's font array - from MG_FontLoadFile() |
BOOLEAN MG_FontInit | ( | BOOLEAN | isHD | ) |
Initialise freetype library and load "built-in" font.
isHD | indicate whether supporting MHEG HD extension |
S16BIT MG_FontLoadFile | ( | const U8BIT * | data, |
U32BIT | length | ||
) |
Load font data file into memory for freetype.
data | font file data |
length | length of font file data |
void MG_GetFontMetrics | ( | H_FontSize | f_sz, |
S_FontMetrics * | pMetrics | ||
) |
Get font Metrics.
font_index | index into MG's font array - from MG_FontLoadFile() |
void MG_ReleaseFont | ( | H_FontSize | f_sz | ) |
Allocate font of particular size from font file.
font_index | index into MG's font array - from MG_FontLoadFile() |
font_size | size in points |
void MG_SetMaxFonts | ( | U16BIT | max | ) |
Set Max allowable fonts for profile.
n/a |