⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tttables.h

📁 奇趣公司比较新的qt/emd版本
💻 H
📖 第 1 页 / 共 3 页
字号:
  /*                             composite TrueType glyph.  See also the   */  /*                             structure element `maxContours'.          */  /*                                                                       */  /*    maxZones              :: The maximum number of zones used for      */  /*                             glyph hinting.                            */  /*                                                                       */  /*    maxTwilightPoints     :: The maximum number of points in the       */  /*                             twilight zone used for glyph hinting.     */  /*                                                                       */  /*    maxStorage            :: The maximum number of elements in the     */  /*                             storage area used for glyph hinting.      */  /*                                                                       */  /*    maxFunctionDefs       :: The maximum number of function            */  /*                             definitions in the TrueType bytecode for  */  /*                             this font.                                */  /*                                                                       */  /*    maxInstructionDefs    :: The maximum number of instruction         */  /*                             definitions in the TrueType bytecode for  */  /*                             this font.                                */  /*                                                                       */  /*    maxStackElements      :: The maximum number of stack elements used */  /*                             during bytecode interpretation.           */  /*                                                                       */  /*    maxSizeOfInstructions :: The maximum number of TrueType opcodes    */  /*                             used for glyph hinting.                   */  /*                                                                       */  /*    maxComponentElements  :: The maximum number of simple (i.e., non-  */  /*                             composite) glyphs in a composite glyph.   */  /*                                                                       */  /*    maxComponentDepth     :: The maximum nesting depth of composite    */  /*                             glyphs.                                   */  /*                                                                       */  /* <Note>                                                                */  /*    This structure is only used during font loading.                   */  /*                                                                       */  typedef struct  TT_MaxProfile_  {    FT_Fixed   version;    FT_UShort  numGlyphs;    FT_UShort  maxPoints;    FT_UShort  maxContours;    FT_UShort  maxCompositePoints;    FT_UShort  maxCompositeContours;    FT_UShort  maxZones;    FT_UShort  maxTwilightPoints;    FT_UShort  maxStorage;    FT_UShort  maxFunctionDefs;    FT_UShort  maxInstructionDefs;    FT_UShort  maxStackElements;    FT_UShort  maxSizeOfInstructions;    FT_UShort  maxComponentElements;    FT_UShort  maxComponentDepth;  } TT_MaxProfile;  /*************************************************************************/  /*                                                                       */  /* <Enum>                                                                */  /*    FT_Sfnt_Tag                                                        */  /*                                                                       */  /* <Description>                                                         */  /*    An enumeration used to specify the index of an SFNT table.         */  /*    Used in the @FT_Get_Sfnt_Table API function.                       */  /*                                                                       */  typedef enum  {    ft_sfnt_head = 0,    ft_sfnt_maxp = 1,    ft_sfnt_os2  = 2,    ft_sfnt_hhea = 3,    ft_sfnt_vhea = 4,    ft_sfnt_post = 5,    ft_sfnt_pclt = 6,    sfnt_max   /* internal end mark */  } FT_Sfnt_Tag;  /* */  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    FT_Get_Sfnt_Table                                                  */  /*                                                                       */  /* <Description>                                                         */  /*    Returns a pointer to a given SFNT table within a face.             */  /*                                                                       */  /* <Input>                                                               */  /*    face :: A handle to the source.                                    */  /*                                                                       */  /*    tag  :: The index of the SFNT table.                               */  /*                                                                       */  /* <Return>                                                              */  /*    A type-less pointer to the table.  This will be 0 in case of       */  /*    error, or if the corresponding table was not found *OR* loaded     */  /*    from the file.                                                     */  /*                                                                       */  /* <Note>                                                                */  /*    The table is owned by the face object and disappears with it.      */  /*                                                                       */  /*    This function is only useful to access SFNT tables that are loaded */  /*    by the sfnt, truetype, and opentype drivers.  See @FT_Sfnt_Tag for */  /*    a list.                                                             */  /*                                                                       */  FT_EXPORT( void* )  FT_Get_Sfnt_Table( FT_Face      face,                     FT_Sfnt_Tag  tag ); /**************************************************************************  *  * @function:  *   FT_Load_Sfnt_Table  *  * @description:  *   Loads any font table into client memory.  *  * @input:  *   face ::  *     A handle to the source face.  *  *   tag ::  *     The four-byte tag of the table to load.  Use the value 0 if you want  *     to access the whole font file.  Otherwise, you can use one of the  *     definitions found in the @FT_TRUETYPE_TAGS_H file, or forge a new  *     one with @FT_MAKE_TAG.  *  *   offset ::  *     The starting offset in the table (or file if tag == 0).  *  * @output:  *   buffer ::  *     The target buffer address.  The client must ensure that the memory  *     array is big enough to hold the data.  *  * @inout:  *   length ::  *     If the `length' parameter is NULL, then try to load the whole table.  *     Return an error code if it fails.  *  *     Else, if `*length' is 0, exit immediately while returning the  *     table's (or file) full size in it.  *  *     Else the number of bytes to read from the table or file, from the  *     starting offset.  *  * @return:  *   FreeType error code.  0 means success.  *  * @note:  *   If you need to determine the table's length you should first call this  *   function with `*length' set to 0, as in the following example:  *  *     {  *       FT_ULong  length = 0;  *  *  *       error = FT_Load_Sfnt_Table( face, tag, 0, NULL, &length );  *       if ( error ) { ... table does not exist ... }  *  *       buffer = malloc( length );  *       if ( buffer == NULL ) { ... not enough memory ... }  *  *       error = FT_Load_Sfnt_Table( face, tag, 0, buffer, &length );  *       if ( error ) { ... could not load table ... }  *     }  */  FT_EXPORT( FT_Error )  FT_Load_Sfnt_Table( FT_Face    face,                      FT_ULong   tag,                      FT_Long    offset,                      FT_Byte*   buffer,                      FT_ULong*  length ); /**************************************************************************  *  * @function:  *   FT_Sfnt_Table_Info  *  * @description:  *   Returns information on an SFNT table.  *  * @input:  *   face ::  *     A handle to the source face.  *  *   table_index ::  *     The index of an SFNT table.  The function returns  *     FT_Err_Table_Missing for an invalid value.  *  * @output:  *   tag ::  *     The name tag of the SFNT table.  *  *   length ::  *     The length of the SFNT table.  *  * @return:  *   FreeType error code.  0 means success.  *  * @note:  *   SFNT tables with length zero are treated as missing by Windows.  *  */  FT_EXPORT( FT_Error )  FT_Sfnt_Table_Info( FT_Face    face,                      FT_UInt    table_index,                      FT_ULong  *tag,                      FT_ULong  *length );  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    FT_Get_CMap_Language_ID                                            */  /*                                                                       */  /* <Description>                                                         */  /*    Return TrueType/sfnt specific cmap language ID.  Definitions of    */  /*    language ID values are in `freetype/ttnameid.h'.                   */  /*                                                                       */  /* <Input>                                                               */  /*    charmap ::                                                         */  /*      The target charmap.                                              */  /*                                                                       */  /* <Return>                                                              */  /*    The language ID of `charmap'.  If `charmap' doesn't belong to a    */  /*    TrueType/sfnt face, just return 0 as the default value.            */  /*                                                                       */  FT_EXPORT( FT_ULong )  FT_Get_CMap_Language_ID( FT_CharMap  charmap );  /* */FT_END_HEADER#endif /* __TTTABLES_H__ *//* END */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -