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 _MG_FONTAPI_H 00026 #define _MG_FONTAPI_H 00027 00028 00029 #include "techtype.h" 00030 00031 typedef struct sFontSize *H_FontSize; 00032 00033 typedef struct s_FontMetrics 00034 { 00035 S32BIT ascent; 00036 S32BIT descent; 00037 S32BIT height; 00038 S32BIT minWidth; 00039 S32BIT maxWidth; 00040 } S_FontMetrics; 00041 00047 BOOLEAN MG_FontInit( BOOLEAN isHD ); 00048 00054 void MG_SetMaxFonts(U16BIT max); 00055 00062 void MG_FontExit(void); 00063 00070 S16BIT MG_FontLoadFile( const U8BIT *data, U32BIT length ); 00071 00078 H_FontSize MG_AllocateFont(S16BIT fnt_index, U8BIT fnt_size, U8BIT fnt_style); 00079 00086 void MG_ReleaseFont( H_FontSize f_sz ); 00087 00093 void MG_GetFontMetrics( H_FontSize f_sz, S_FontMetrics *pMetrics ); 00094 00100 void MG_FontFreeFile( S16BIT font_index ); 00101 00102 #endif /*_MG_FONTAPI_H*/