MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
Data Structures | Enumerations | Functions
dvb_font.h File Reference

Font loading functions required by MHEG5 engine (Hong Kong profile) More...

#include "techtype.h"
#include "mherrors.h"

Go to the source code of this file.

Data Structures

struct  S_FontData
 

Enumerations

enum  E_FontDataType { MHEG5_RAW_FONT_DATA_TTF, MHEG5_FONT_FILE_PATH_TTF }
 

Functions

E_MhegErr DVB_MhegGetEmbeddedFont (const U8BIT *fontName, S_FontData **fontData)
 Retrieves the specified embedded font. Depending on the requirements of the platform, it may either pass back: More...
 

Detailed Description

Font loading functions required by MHEG5 engine (Hong Kong profile)

Date
25/03/2010
Author
Adam Sturtridge

Function Documentation

E_MhegErr DVB_MhegGetEmbeddedFont ( const U8BIT *  fontName,
S_FontData **  fontData 
)

Retrieves the specified embedded font. Depending on the requirements of the platform, it may either pass back:

  • The whole font file in memory, which allows faster rendering but requires a large amount of free memory.
  • Or the filename of the font file for the engine to open, which requires less memory but will slow down the rendering process.
    Parameters
    fontNameName of the font required, as specified in the application
    fontDataPointer to the data for the required font.
    Returns
    MHERR_OK - Success MHERR_BAD_PARAMETER - Requested font not available MHERR_INTERNAL - Any other error