MHEG5  15.3.0
source/graphics/src/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

Defines

#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.
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.

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:
.

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:
.

Parameters:
.
Returns:
.
 All Data Structures Files Functions Variables Typedefs Defines