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

📄 tttypes.h

📁 读写pdf文件的程序开发库源码,对于编写开发库有所帮助.
💻 H
📖 第 1 页 / 共 5 页
字号:
    FT_UShort*        glyphIdArray;    FT_UShort         numGlyphId;    /* control value */    TT_CMap4Segment*  last_segment;  /* last used segment; this is a small  */                                     /* cache to potentially increase speed */  } TT_CMap4;  /* format 6 */  typedef struct  TT_CMap6_  {    FT_ULong    language;       /* for Mac fonts (originally ushort)     */    FT_UShort   firstCode;      /* first character code of subrange      */    FT_UShort   entryCount;     /* number of character codes in subrange */    FT_UShort*  glyphIdArray;  } TT_CMap6;  /* auxiliary table for format 8 and 12 */  typedef struct  TT_CMapGroup_  {    FT_ULong  startCharCode;    FT_ULong  endCharCode;    FT_ULong  startGlyphID;  } TT_CMapGroup;  /* FreeType handles format 8 and 12 identically.  It is not necessary to     cover mixed 16bit and 32bit codes since FreeType always uses FT_ULong     for input character codes -- converting Unicode surrogates to 32bit     character codes must be done by the application.                      */  typedef struct  TT_CMap8_12_  {    FT_ULong       language;        /* for Mac fonts */    FT_ULong       nGroups;    TT_CMapGroup*  groups;    TT_CMapGroup*  last_group;      /* last used group; this is a small    */                                    /* cache to potentially increase speed */  } TT_CMap8_12;  /* format 10 */  typedef struct  TT_CMap10_  {    FT_ULong    language;           /* for Mac fonts */    FT_ULong    startCharCode;      /* first character covered */    FT_ULong    numChars;           /* number of characters covered */    FT_UShort*  glyphs;  } TT_CMap10;  typedef struct TT_CMapTable_  TT_CMapTable;  typedef FT_UInt  (*TT_CharMap_Func)( TT_CMapTable*  charmap,                      FT_ULong       char_code );  typedef FT_ULong  (*TT_CharNext_Func)( TT_CMapTable* charmap,                       FT_ULong      char_code );  /* charmap table */  struct  TT_CMapTable_  {    FT_UShort  platformID;    FT_UShort  platformEncodingID;    FT_UShort  format;    FT_ULong   length;          /* must be ulong for formats 8, 10, and 12 */    FT_Bool    loaded;    FT_ULong   offset;    union    {      TT_CMap0     cmap0;      TT_CMap2     cmap2;      TT_CMap4     cmap4;      TT_CMap6     cmap6;      TT_CMap8_12  cmap8_12;      TT_CMap10    cmap10;    } c;    TT_CharMap_Func  get_index;    TT_CharNext_Func get_next_char;  };  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    TT_CharMapRec                                                      */  /*                                                                       */  /* <Description>                                                         */  /*    The TrueType character map object type.                            */  /*                                                                       */  /* <Fields>                                                              */  /*    root :: The parent character map structure.                        */  /*                                                                       */  /*    cmap :: The used character map.                                    */  /*                                                                       */  typedef struct  TT_CharMapRec_  {    FT_CharMapRec  root;    TT_CMapTable   cmap;  } TT_CharMapRec;  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /***                                                                   ***/  /***                                                                   ***/  /***                  ORIGINAL TT_FACE CLASS DEFINITION                ***/  /***                                                                   ***/  /***                                                                   ***/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /* This structure/class is defined here because it is common to the      */  /* following formats: TTF, OpenType-TT, and OpenType-CFF.                */  /*                                                                       */  /* Note, however, that the classes TT_Size, TT_GlyphSlot, and TT_CharMap */  /* are not shared between font drivers, and are thus defined normally in */  /* `ttobjs.h'.                                                           */  /*                                                                       */  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    TT_Face                                                            */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a TrueType face/font object.  A TT_Face encapsulates   */  /*    the resolution and scaling independent parts of a TrueType font    */  /*    resource.                                                          */  /*                                                                       */  /* <Note>                                                                */  /*    The TT_Face structure is also used as a `parent class' for the     */  /*    OpenType-CFF class (T2_Face).                                      */  /*                                                                       */  typedef struct TT_FaceRec_*  TT_Face;  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    TT_CharMap                                                         */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a TrueType character mapping object.                   */  /*                                                                       */  typedef struct TT_CharMapRec_*  TT_CharMap;  /* a function type used for the truetype bytecode interpreter hooks */  typedef FT_Error  (*TT_Interpreter)( void*  exec_context );  /* forward declaration */  typedef struct TT_Loader_  TT_Loader;  /*************************************************************************/  /*                                                                       */  /* <FuncType>                                                            */  /*    TT_Goto_Table_Func                                                 */  /*                                                                       */  /* <Description>                                                         */  /*    Seeks a stream to the start of a given TrueType table.             */  /*                                                                       */  /* <Input>                                                               */  /*    face   :: A handle to the target face object.                      */  /*                                                                       */  /*    tag    :: A 4-byte tag used to name the table.                     */  /*                                                                       */  /*    stream :: The input stream.                                        */  /*                                                                       */  /* <Output>                                                              */  /*    length :: The length of the table in bytes.  Set to 0 if not       */  /*              needed.                                                  */  /*                                                                       */  /* <Return>                                                              */  /*    FreeType error code.  0 means success.                             */  /*                                                                       */  /* <Note>                                                                */  /*    The stream cursor must be at the font file's origin.               */  /*                                                                       */  typedef FT_Error  (*TT_Goto_Table_Func)( TT_Face    face,                         FT_ULong   tag,                         FT_Stream  stream,                         FT_ULong*  length );  /*************************************************************************/  /*                                                                       */  /* <FuncType>                                                            */  /*    TT_Access_Glyph_Frame_Func                                         */  /*                                                                       */  /* <Description>                                                         */  /*    Seeks a stream to the start of a given glyph element, and opens a  */  /*    frame for it.                                                      */  /*                                                                       */  /* <Input>                                                               */  /*    loader      :: The current TrueType glyph loader object.           */  /*                                                                       */  /*    glyph index :: The index of the glyph to access.                   */  /*                                                                       */  /*    offset      :: The offset of the glyph according to the            */  /*                   `locations' table.                                  */  /*                                                                       */  /*    byte_count  :: The size of the frame in bytes.                     */  /*                                                                       */  /* <Return>                                                              */  /*    FreeType error code.  0 means success.                             */  /*                                                                       */  /* <Note>                                                                */  /*    This function is normally equivalent to FILE_Seek(offset)          */  /*    followed by ACCESS_Frame(byte_count) with 

⌨️ 快捷键说明

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