MHEG5
15.3.0
|
00001 /******************************************************************************* 00002 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org) 00003 * Copyright © 2010 Ocean Blue Software Ltd 00004 * 00005 * This file is part of a DTVKit Software Component 00006 * You are permitted to copy, modify or distribute this file subject to the terms 00007 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org 00008 * 00009 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 00010 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 00011 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. 00012 * 00013 * If you or your organisation is not a member of DTVKit then you have access 00014 * to this source code outside of the terms of the licence agreement 00015 * and you are expected to delete this and any associated files immediately. 00016 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org 00017 *******************************************************************************/ 00025 #ifndef _DVB_FONT_H_ 00026 #define _DVB_FONT_H_ 00027 00028 #include "techtype.h" 00029 #include "mherrors.h" 00030 00031 /*---Constant and macro definitions for public use-----------------------------*/ 00032 00033 /*---Enumerations for public use-----------------------------------------------*/ 00034 00035 typedef enum 00036 { 00037 /*data is a pointer to the entire font file, stored in memory*/ 00038 MHEG5_RAW_FONT_DATA_TTF, 00039 00040 /*data is a null-terminated string containing the filesystem path of the font file*/ 00041 MHEG5_FONT_FILE_PATH_TTF 00042 } E_FontDataType; 00043 00044 /*---Global type defs for public use-------------------------------------------*/ 00045 00046 typedef struct 00047 { 00048 /*size of data, in bytes*/ 00049 U32BIT dataLength; 00050 00051 /*pointer to font data*/ 00052 U8BIT *data; 00053 00054 /*type of data, see above*/ 00055 E_FontDataType dataType; 00056 } S_FontData; 00057 00058 00059 /*---Global Function prototypes for public use---------------------------------*/ 00060 00074 E_MhegErr DVB_MhegGetEmbeddedFont(const U8BIT *fontName, S_FontData **fontData); 00075 00076 #endif /*_DVB_FONT_H_*/