MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
dvb_font.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2010 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef _DVB_FONT_H_
26 #define _DVB_FONT_H_
27 
28 #include "techtype.h"
29 #include "mherrors.h"
30 
31 /*---Constant and macro definitions for public use-----------------------------*/
32 
33 /*---Enumerations for public use-----------------------------------------------*/
34 
35 typedef enum
36 {
37  /*data is a pointer to the entire font file, stored in memory*/
38  MHEG5_RAW_FONT_DATA_TTF,
39 
40  /*data is a null-terminated string containing the filesystem path of the font file*/
41  MHEG5_FONT_FILE_PATH_TTF
42 } E_FontDataType;
43 
44 /*---Global type defs for public use-------------------------------------------*/
45 
46 typedef struct
47 {
48  /*size of data, in bytes*/
49  U32BIT dataLength;
50 
51  /*pointer to font data*/
52  U8BIT *data;
53 
54  /*type of data, see above*/
55  E_FontDataType dataType;
56 } S_FontData;
57 
58 
59 /*---Global Function prototypes for public use---------------------------------*/
60 
74 E_MhegErr DVB_MhegGetEmbeddedFont(const U8BIT *fontName, S_FontData **fontData);
75 
76 #endif /*_DVB_FONT_H_*/
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:
MHEG5 engine interface error codes.
System Wide Global Technical Data Type Definitions.
Definition: dvb_font.h:46