MHEG5  18.9.0
MHEG5 Documentation
Classes | Macros | Typedefs | Enumerations | Functions | Variables
mg_font.h File Reference

Font file handling with the Freetype. More...

#include <ft2build.h>
#include "techtype.h"

Go to the source code of this file.

Classes

struct  _VBox
 
struct  _CacheSbit
 
struct  sFontSize
 
struct  sFontDetails
 

Macros

#define FIRST_CACHE_CHAR   ('!')
 
#define CHAR_CACHE_SIZE   0x5e
 
#define BUILT_IN_FONT   0
 
#define FTYPE_TTF   0
 
#define FTYPE_PFR   1
 

Typedefs

typedef struct _VBox VBox
 
typedef struct _VBoxpVBox
 
typedef struct _CacheSbit CacheSbit
 
typedef struct sFontSize S_FontSize
 
typedef struct sFontDetails S_FontDetails
 

Enumerations

enum  E_HDMode { NORMAL_SD, NORMAL_HD }
 

Functions

S_FontDetailsMG_GetFontPtr (S16BIT font_index)
 Get Pointer to Font. More...
 
void MG_ReleaseFontPtr (S_FontDetails *fp)
 
S_FontSizeMG_GetFontSize (U16BIT fnt_index, U8BIT fnt_size, U8BIT fnt_style)
 
void MG_CheckCache (S_FontSize *sz_data)
 
S_FontDetailsMG_FindFont (S_FontSize *f_sz)
 Get font from size. More...
 

Variables

E_HDMode mg_hd_mode
 

Detailed Description

Font file handling with the Freetype.

Date
15/04/2010
Author
Adam Sturtridge

Definition in file mg_font.h.

Macro Definition Documentation

#define BUILT_IN_FONT   0

Definition at line 36 of file mg_font.h.

#define CHAR_CACHE_SIZE   0x5e

Definition at line 35 of file mg_font.h.

#define FIRST_CACHE_CHAR   ('!')

Definition at line 34 of file mg_font.h.

#define FTYPE_PFR   1

Definition at line 39 of file mg_font.h.

#define FTYPE_TTF   0

Definition at line 38 of file mg_font.h.

Typedef Documentation

typedef struct _CacheSbit CacheSbit
typedef struct _VBox * pVBox
typedef struct sFontDetails S_FontDetails
typedef struct sFontSize S_FontSize
typedef struct _VBox VBox

Enumeration Type Documentation

enum E_HDMode
Enumerator
NORMAL_SD 
NORMAL_HD 

Definition at line 45 of file mg_font.h.

Function Documentation

void MG_CheckCache ( S_FontSize f_szdata)

Parameters
.
Returns
.

Definition at line 841 of file mg_font.c.

S_FontDetails* MG_FindFont ( S_FontSize f_sz)

Get font from size.

Parameters
f_szPointer to size data
Returns
n/a
S_FontDetails* MG_GetFontPtr ( S16BIT  font_index)

Get Pointer to Font.

Parameters
font_index- as returned by MG_LoadFontFile().
Returns
Pointer to font details

Definition at line 400 of file mg_font.c.

S_FontSize* MG_GetFontSize ( U16BIT  fnt_index,
U8BIT  fnt_size,
U8BIT  fnt_style 
)

Parameters
.
Returns
.

Definition at line 600 of file mg_font.c.

void MG_ReleaseFontPtr ( S_FontDetails fp)

Parameters
.
Returns
.

Definition at line 412 of file mg_font.c.

Variable Documentation

E_HDMode mg_hd_mode

Definition at line 76 of file mg_font.c.