MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
Data Structures | 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.

Data Structures

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

Function Documentation

void MG_CheckCache ( S_FontSize f_szdata)

Parameters
.
Returns
.
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
S_FontSize* MG_GetFontSize ( U16BIT  fnt_index,
U8BIT  fnt_size,
U8BIT  fnt_style 
)

Parameters
.
Returns
.
void MG_ReleaseFontPtr ( S_FontDetails fp)

Parameters
.
Returns
.