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

📄 freetype.h

📁 qt-x11-opensource-src-4.1.4.tar.gz源码
💻 H
📖 第 1 页 / 共 5 页
字号:
  /*   values as well.                                                     */  /*                                                                       */  /*   FT_ENCODING_NONE is set by the BDF and PCF drivers if the charmap   */  /*   is neither Unicode nor ISO-8859-1 (otherwise it is set to           */  /*   FT_ENCODING_UNICODE).  Use `FT_Get_BDF_Charset_ID' to find out      */  /*   which encoding is really present.  If, for example, the             */  /*   `cs_registry' field is `KOI8' and the `cs_encoding' field is `R',   */  /*   the font is encoded in KOI8-R.                                      */  /*                                                                       */  /*   FT_ENCODING_NONE is always set (with a single exception) by the     */  /*   winfonts driver.  Use `FT_Get_WinFNT_Header' and examine the        */  /*   `charset' field of the `FT_WinFNT_HeaderRec' structure to find out  */  /*   which encoding is really present.  For example, FT_WinFNT_ID_CP1251 */  /*   (204) means Windows code page 1251 (for Russian).                   */  /*                                                                       */  /*   FT_ENCODING_NONE is set if `platform_id' is `TT_PLATFORM_MACINTOSH' */  /*   and `encoding_id' is not `TT_MAC_ID_ROMAN' (otherwise it is set to  */  /*   FT_ENCODING_APPLE_ROMAN).                                           */  /*                                                                       */  /*   If `platform_id' is `TT_PLATFORM_MACINTOSH', use the function       */  /*   `FT_Get_CMap_Language_ID' to query the Mac language ID which may be */  /*   needed to be able to distinguish Apple encoding variants.  See      */  /*                                                                       */  /*     http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/README.TXT   */  /*                                                                       */  /*   to get an idea how to do that.  Basically, if the language ID is 0, */  /*   dont use it, otherwise subtract 1 from the language ID.  Then       */  /*   examine `encoding_id'.  If, for example, `encoding_id' is           */  /*   `TT_MAC_ID_ROMAN' and the language ID (minus 1) is                  */  /*   `TT_MAC_LANGID_GREEK', it is the Greek encoding, not Roman.         */  /*   `TT_MAC_ID_ARABIC' with `TT_MAC_LANGID_FARSI' means the Farsi       */  /*   variant the Arabic encoding.                                        */  /*                                                                       */  typedef enum  FT_Encoding_  {    FT_ENC_TAG( FT_ENCODING_NONE, 0, 0, 0, 0 ),    FT_ENC_TAG( FT_ENCODING_MS_SYMBOL,  's', 'y', 'm', 'b' ),    FT_ENC_TAG( FT_ENCODING_UNICODE,    'u', 'n', 'i', 'c' ),    FT_ENC_TAG( FT_ENCODING_SJIS,    's', 'j', 'i', 's' ),    FT_ENC_TAG( FT_ENCODING_GB2312,  'g', 'b', ' ', ' ' ),    FT_ENC_TAG( FT_ENCODING_BIG5,    'b', 'i', 'g', '5' ),    FT_ENC_TAG( FT_ENCODING_WANSUNG, 'w', 'a', 'n', 's' ),    FT_ENC_TAG( FT_ENCODING_JOHAB,   'j', 'o', 'h', 'a' ),    /* for backwards compatibility */    FT_ENCODING_MS_SJIS    = FT_ENCODING_SJIS,    FT_ENCODING_MS_GB2312  = FT_ENCODING_GB2312,    FT_ENCODING_MS_BIG5    = FT_ENCODING_BIG5,    FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG,    FT_ENCODING_MS_JOHAB   = FT_ENCODING_JOHAB,    FT_ENC_TAG( FT_ENCODING_ADOBE_STANDARD, 'A', 'D', 'O', 'B' ),    FT_ENC_TAG( FT_ENCODING_ADOBE_EXPERT,   'A', 'D', 'B', 'E' ),    FT_ENC_TAG( FT_ENCODING_ADOBE_CUSTOM,   'A', 'D', 'B', 'C' ),    FT_ENC_TAG( FT_ENCODING_ADOBE_LATIN_1,  'l', 'a', 't', '1' ),    FT_ENC_TAG( FT_ENCODING_OLD_LATIN_2, 'l', 'a', 't', '2' ),    FT_ENC_TAG( FT_ENCODING_APPLE_ROMAN, 'a', 'r', 'm', 'n' )  } FT_Encoding;  /*************************************************************************/  /*                                                                       */  /* <Enum>                                                                */  /*    ft_encoding_xxx                                                    */  /*                                                                       */  /* <Description>                                                         */  /*    These constants are deprecated; use the corresponding @FT_Encoding */  /*    values instead.                                                    */  /*                                                                       */  /* <Values>                                                              */  /*   ft_encoding_none    :: see @FT_ENCODING_NONE                        */  /*   ft_encoding_unicode :: see @FT_ENCODING_UNICODE                     */  /*   ft_encoding_latin_2 :: see @FT_ENCODING_OLD_LATIN_2                 */  /*   ft_encoding_symbol  :: see @FT_ENCODING_MS_SYMBOL                   */  /*   ft_encoding_sjis    :: see @FT_ENCODING_SJIS                        */  /*   ft_encoding_gb2312  :: see @FT_ENCODING_GB2312                      */  /*   ft_encoding_big5    :: see @FT_ENCODING_BIG5                        */  /*   ft_encoding_wansung :: see @FT_ENCODING_WANSUNG                     */  /*   ft_encoding_johab   :: see @FT_ENCODING_JOHAB                       */  /*                                                                       */  /*   ft_encoding_adobe_standard :: see @FT_ENCODING_ADOBE_STANDARD       */  /*   ft_encoding_adobe_expert   :: see @FT_ENCODING_ADOBE_EXPERT         */  /*   ft_encoding_adobe_custom   :: see @FT_ENCODING_ADOBE_CUSTOM         */  /*   ft_encoding_latin_1        :: see @FT_ENCODING_ADOBE_LATIN_1        */  /*                                                                       */  /*   ft_encoding_apple_roman    :: see @FT_ENCODING_APPLE_ROMAN          */  /*                                                                       */#define ft_encoding_none            FT_ENCODING_NONE#define ft_encoding_unicode         FT_ENCODING_UNICODE#define ft_encoding_symbol          FT_ENCODING_MS_SYMBOL#define ft_encoding_latin_1         FT_ENCODING_ADOBE_LATIN_1#define ft_encoding_latin_2         FT_ENCODING_OLD_LATIN_2#define ft_encoding_sjis            FT_ENCODING_SJIS#define ft_encoding_gb2312          FT_ENCODING_GB2312#define ft_encoding_big5            FT_ENCODING_BIG5#define ft_encoding_wansung         FT_ENCODING_WANSUNG#define ft_encoding_johab           FT_ENCODING_JOHAB#define ft_encoding_adobe_standard  FT_ENCODING_ADOBE_STANDARD#define ft_encoding_adobe_expert    FT_ENCODING_ADOBE_EXPERT#define ft_encoding_adobe_custom    FT_ENCODING_ADOBE_CUSTOM#define ft_encoding_apple_roman     FT_ENCODING_APPLE_ROMAN  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    FT_CharMapRec                                                      */  /*                                                                       */  /* <Description>                                                         */  /*    The base charmap structure.                                        */  /*                                                                       */  /* <Fields>                                                              */  /*    face        :: A handle to the parent face object.                 */  /*                                                                       */  /*    encoding    :: An @FT_Encoding tag identifying the charmap.  Use   */  /*                   this with @FT_Select_Charmap.                       */  /*                                                                       */  /*    platform_id :: An ID number describing the platform for the        */  /*                   following encoding ID.  This comes directly from    */  /*                   the TrueType specification and should be emulated   */  /*                   for other formats.                                  */  /*                                                                       */  /*    encoding_id :: A platform specific encoding number.  This also     */  /*                   comes from the TrueType specification and should be */  /*                   emulated similarly.                                 */  /*                                                                       */  typedef struct  FT_CharMapRec_  {    FT_Face      face;    FT_Encoding  encoding;    FT_UShort    platform_id;    FT_UShort    encoding_id;  } FT_CharMapRec;  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /*                 B A S E   O B J E C T   C L A S S E S                 */  /*                                                                       */  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FT_Face_Internal                                                   */  /*                                                                       */  /* <Description>                                                         */  /*    An opaque handle to an FT_Face_InternalRec structure, used to      */  /*    model private data of a given @FT_Face object.                     */  /*                                                                       */  /*    This structure might change between releases of FreeType 2 and is  */  /*    not generally available to client applications.                    */  /*                                                                       */  typedef struct FT_Face_InternalRec_*  FT_Face_Internal;  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    FT_FaceRec                                                         */  /*                                                                       */  /* <Description>                                                         */  /*    FreeType root face class structure.  A face object models the      */  /*    resolution and point-size independent data found in a font file.   */  /*                                                                       */  /* <Fields>                                                              */  /*    num_faces           :: In the case where the face is located in a  */  /*                           collection (i.e., a file which embeds       */  /*                           several faces), this is the total number of */  /*                           faces found in the resource.  1 by default. */  /*                           Accessing non-existent face indices causes  */  /*                           an error.                                   */  /*                                                                       */  /*    face_index          :: The index of the face in its font file.     */  /*                           Usually, this is 0 for all normal font      */  /*                           formats.  It can be > 0 in the case of      */  /*                           collections (which embed several fonts in a */  /*                           single resource/file).                      */  /*                                                                       */  /*    face_flags          :: A set of bit flags that give important      */  /*                           information about the face; see the         */  /*                           @FT_FACE_FLAG_XXX constants for details.    */  /*                                                                       */  /*    style_flags         :: A set of bit flags indicating the style of  */  /*                           the face (i.e., italic, bold, underline,    */  /*                           etc).  See the @FT_STYLE_FLAG_XXX           */  /*                           constants.                                  */  /*                                                                       */  /*    num_glyphs          :: The total number of glyphs in the face.     */  /*                                                                       */

⌨️ 快捷键说明

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