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

📄 freetype.h

📁 奇趣公司比较新的qt/emd版本
💻 H
📖 第 1 页 / 共 5 页
字号:
  /*                                                                       */  /*   FT_ENCODING_MS_WANSUNG ::                                           */  /*     Same as FT_ENCODING_WANSUNG.  Deprecated.                         */  /*                                                                       */  /*   FT_ENCODING_MS_JOHAB ::                                             */  /*     Same as FT_ENCODING_JOHAB.  Deprecated.                           */  /*                                                                       */  /* <Note>                                                                */  /*   By default, FreeType automatically synthetizes a Unicode charmap    */  /*   for Postscript fonts, using their glyph names dictionaries.         */  /*   However, it also reports the encodings defined explicitly in the    */  /*   font file, for the cases when they are needed, with the Adobe       */  /*   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  c     */  /*   @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, */  /*   don't 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.                                                    */  /*                                                                       */#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 a        */  /*    typeface in a font file.                                           */  /*                                                                       */  /* <Fields>                                                              */  /*    num_faces           :: The number of faces in the font file.  Some */  /*                           font formats can have multiple faces in     */  /*                           a font file.                                */  /*                                                                       */  /*    face_index          :: The index of the face in the font file.  It */  /*                           is set to 0 if there is only one face in    */  /*                           the font file.                              */  /*                                                                       */  /*    face_flags          :: A set of bit flags that give important      */  /*                           information about the face; see             */  /*                           @FT_FACE_FLAG_XXX for the details.          */  /*                                                                       */  /*    style_flags         :: A set of bit flags indicating the style of  */  /*                           the face; see @FT_STYLE_FLAG_XXX for the    */  /*                           details.                                    */  /*                                                                       */  /*    num_glyphs          :: The number of glyphs in the face.  If the   */  /*                           face is scalable and has sbits (see         */  /*                           `num_fixed_sizes'), it is set to the number */  /*                           of outline glyphs.                          */  /*                                                                       */  /*    family_name         :: The face's family name.  This is an ASCII   */  /*                           string, usually in English, which describes */  /*                           the typeface's family (like `Times New      */  /*                           Roman', `Bodoni', `Garamond', etc).  This   */  /*                           is a least common denominator used to list  */  /*                           fonts.  Some formats (TrueType & OpenType)  */  /*                           provide localized and Unicode versions of   */  /*                           this string.  Applications should use the   */

⌨️ 快捷键说明

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