freetype.h

来自「关于OpenGL的实例教程源代码」· C头文件 代码 · 共 998 行 · 第 1/5 页

H
998
字号
    FT_Long           num_glyphs;    FT_String*        family_name;    FT_String*        style_name;    FT_Int            num_fixed_sizes;    FT_Bitmap_Size*   available_sizes;    FT_Int            num_charmaps;    FT_CharMap*       charmaps;    FT_Generic        generic;    /*# the following are only relevant to scalable outlines */    FT_BBox           bbox;    FT_UShort         units_per_EM;    FT_Short          ascender;    FT_Short          descender;    FT_Short          height;    FT_Short          max_advance_width;    FT_Short          max_advance_height;    FT_Short          underline_position;    FT_Short          underline_thickness;    FT_GlyphSlot      glyph;    FT_Size           size;    FT_CharMap        charmap;    /*@private begin */    FT_Driver         driver;    FT_Memory         memory;    FT_Stream         stream;    FT_ListRec        sizes_list;    FT_Generic        autohint;    void*             extensions;    FT_Face_Internal  internal;    /*@private end */  } FT_FaceRec;  /*************************************************************************/  /*                                                                       */  /* <Enum>                                                                */  /*    FT_FACE_FLAG_XXX                                                   */  /*                                                                       */  /* <Description>                                                         */  /*    A list of bit flags used in the 'face_flags' field of the          */  /*    @FT_FaceRec structure.  They inform client applications of         */  /*    properties of the corresponding face.                              */  /*                                                                       */  /* <Values>                                                              */  /*    FT_FACE_FLAG_SCALABLE ::                                           */  /*      Indicates that the face provides vectorial outlines.  This       */  /*      doesn't prevent embedded bitmaps, i.e., a face can have both     */  /*      this bit and @FT_FACE_FLAG_FIXED_SIZES set                       */  /*                                                                       */  /*    FT_FACE_FLAG_FIXED_SIZES ::                                        */  /*      Indicates that the face contains `fixed sizes', i.e., bitmap     */  /*      strikes for some given pixel sizes.  See the `num_fixed_sizes'   */  /*      and `available_sizes' fields of @FT_FaceRec.                     */  /*                                                                       */  /*    FT_FACE_FLAG_FIXED_WIDTH ::                                        */  /*      Indicates that the face contains fixed-width characters (like    */  /*      Courier, Lucido, MonoType, etc.).                                */  /*                                                                       */  /*    FT_FACE_FLAG_SFNT ::                                               */  /*      Indicates that the face uses the `sfnt' storage scheme.  For     */  /*      now, this means TrueType and OpenType.                           */  /*                                                                       */  /*    FT_FACE_FLAG_HORIZONTAL ::                                         */  /*      Indicates that the face contains horizontal glyph metrics.  This */  /*      should be set for all common formats.                            */  /*                                                                       */  /*    FT_FACE_FLAG_VERTICAL ::                                           */  /*      Indicates that the face contains vertical glyph metrics.  This   */  /*      is only available in some formats, not all of them.              */  /*                                                                       */  /*    FT_FACE_FLAG_KERNING ::                                            */  /*      Indicates that the face contains kerning information.  If set,   */  /*      the kerning distance can be retrieved through the function       */  /*      @FT_Get_Kerning.  Note that if unset, this function will always  */  /*      return the vector (0,0).                                         */  /*                                                                       */  /*    FT_FACE_FLAG_FAST_GLYPHS ::                                        */  /*      THIS FLAG IS DEPRECATED.  DO NOT USE OR TEST IT.                 */  /*                                                                       */  /*    FT_FACE_FLAG_MULTIPLE_MASTERS ::                                   */  /*      Indicates that the font contains multiple masters and is capable */  /*      of interpolating between them.  See the multiple-masters         */  /*      specific API for details.                                        */  /*                                                                       */  /*    FT_FACE_FLAG_GLYPH_NAMES ::                                        */  /*      Indicates that the font contains glyph names that can be         */  /*      retrieved through @FT_Get_Glyph_Names.  Note that some TrueType  */  /*      fonts contain broken glyph name tables.  Use the function        */  /*      @FT_Has_PS_Glyph_Name when needed.                               */  /*                                                                       */  /*    FT_FACE_FLAG_EXTERNAL_STREAM ::                                    */  /*      Used internally by FreeType to indicate that a face's stream was */  /*      provided by the client application and should not be destroyed   */  /*      when @FT_Done_Face is called.  Don't read or test this flag.     */  /*                                                                       */#define FT_FACE_FLAG_SCALABLE          ( 1L <<  0 )#define FT_FACE_FLAG_FIXED_SIZES       ( 1L <<  1 )#define FT_FACE_FLAG_FIXED_WIDTH       ( 1L <<  2 )#define FT_FACE_FLAG_SFNT              ( 1L <<  3 )#define FT_FACE_FLAG_HORIZONTAL        ( 1L <<  4 )#define FT_FACE_FLAG_VERTICAL          ( 1L <<  5 )#define FT_FACE_FLAG_KERNING           ( 1L <<  6 )#define FT_FACE_FLAG_FAST_GLYPHS       ( 1L <<  7 )#define FT_FACE_FLAG_MULTIPLE_MASTERS  ( 1L <<  8 )#define FT_FACE_FLAG_GLYPH_NAMES       ( 1L <<  9 )#define FT_FACE_FLAG_EXTERNAL_STREAM   ( 1L << 10 )  /* */  /*************************************************************************/  /*                                                                       */  /* @macro:                                                               */  /*    FT_HAS_HORIZONTAL( face )                                          */  /*                                                                       */  /* @description:                                                         */  /*    A macro that returns true whenever a face object contains          */  /*    horizontal metrics (this is true for all font formats though).     */  /*                                                                       */  /* @also:                                                                */  /*    @FT_HAS_VERTICAL can be used to check for vertical metrics.        */  /*                                                                       */#define FT_HAS_HORIZONTAL( face ) \          ( face->face_flags & FT_FACE_FLAG_HORIZONTAL )  /*************************************************************************/  /*                                                                       */  /* @macro:                                                               */  /*    FT_HAS_VERTICAL( face )                                            */  /*                                                                       */  /* @description:                                                         */  /*    A macro that returns true whenever a face object contains vertical */  /*    metrics.                                                           */  /*                                                                       */#define FT_HAS_VERTICAL( face ) \          ( face->face_flags & FT_FACE_FLAG_VERTICAL )  /*************************************************************************/  /*                                                                       */  /* @macro:                                                               */  /*    FT_HAS_KERNING( face )                                             */  /*                                                                       */  /* @description:                                                         */  /*    A macro that returns true whenever a face object contains kerning  */  /*    data that can be accessed with @FT_Get_Kerning.                    */  /*                                                                       */#define FT_HAS_KERNING( face ) \          ( face->face_flags & FT_FACE_FLAG_KERNING )  /*************************************************************************/  /*                                                                       */  /* @macro:                                                               */  /*    FT_IS_SCALABLE( face )                                             */  /*                                                                       */  /* @description:                                                         */  /*    A macro that returns true whenever a face object contains a        */  /*    scalable font face (true for TrueType, Type 1, CID, and            */  /*    OpenType/CFF font formats.                                         */  /*                                                                       */#define FT_IS_SCALABLE( face ) \          ( face->face_flags & FT_FACE_FLAG_SCALABLE )  /*************************************************************************/  /*                                                                       */  /* @macro:                                                               */  /*    FT_IS_SFNT( face )                                                 */  /*                                                                       */  /* @description:                                                         */  /*    A macro that returns true whenever a face object contains a font   */  /*    whose format is based on the SFNT storage scheme.  This usually    */  /*    means: TrueType fonts, OpenType fonts, as well as SFNT-based       */  /*    embedded bitmap fonts.                                             */  /*                                                                       */  /*    If this macro is true, all functions defined in @FT_SFNT_NAMES_H   */  /*    and @FT_TRUETYPE_TABLES_H are available.                           */  /*                                                                       */#

⌨️ 快捷键说明

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