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

📄 freetype.h

📁 一个Xpdf应用的例子
💻 H
📖 第 1 页 / 共 5 页
字号:
  /* <Struct>                                                              */  /*    FT_CharMapRec                                                      */  /*                                                                       */  /* <Description>                                                         */  /*    The base charmap class.                                            */  /*                                                                       */  /* <Fields>                                                              */  /*    face        :: A handle to the parent face object.                 */  /*                                                                       */  /*    encoding    :: A tag which identifies 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.                                 */  /*                                                                       */  /* <Note>                                                                */  /*    We STRONGLY recommmend emulating a Unicode charmap for drivers     */  /*    that do not support TrueType or OpenType.                          */  /*                                                                       */  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 field might change between releases of FreeType 2 and are     */  /*    not generally available to client applications.                    */  /*                                                                       */  typedef struct FT_Face_InternalRec_*  FT_Face_Internal;  /*************************************************************************/  /*                                                                       */  /*                       FreeType base face class                        */  /*                                                                       */  /* <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 resource which embeds   */  /*                           several faces), this is the total number of */  /*                           faces found in the resource.  1 by default. */  /*                                                                       */  /*    face_index          :: The index of the face in its resource.      */  /*                           Usually, this is 0 for all normal font      */  /*                           formats.  It can be more 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 macros for details.        */  /*                                                                       */  /*    style_flags         :: A set of bit flags indicating the style of  */  /*                           the face (i.e., italic, bold, underline,    */  /*                           etc).                                       */  /*                                                                       */  /*    num_glyphs          :: The total number of glyphs in the face.     */  /*                                                                       */  /*    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   */  /*                           format specific interface to access them.   */  /*                                                                       */  /*    style_name          :: The face's style name.  This is an ASCII    */  /*                           string, usually in English, which describes */  /*                           the typeface's style (like `Italic',        */  /*                           `Bold', `Condensed', etc).  Not all font    */  /*                           formats provide a style name, so this field */  /*                           is optional, and can be set to NULL.  As    */  /*                           for `family_name', some formats provide     */  /*                           localized/Unicode versions of this string.  */  /*                           Applications should use the format specific */  /*                           interface to access them.                   */  /*                                                                       */  /*    num_fixed_sizes     :: The number of fixed sizes available in this */  /*                           face.  This should be set to 0 for scalable */  /*                           fonts, unless its resource includes a       */  /*                           complete set of glyphs (called a `strike')  */  /*                           for the specified size.                     */  /*                                                                       */  /*    available_sizes     :: An array of sizes specifying the available  */  /*                           bitmap/graymap sizes that are contained in  */  /*                           in the font resource.  Should be set to     */  /*                           NULL if the field `num_fixed_sizes' is set  */  /*                           to 0.                                       */  /*                                                                       */  /*    num_charmaps        :: The total number of character maps in the   */  /*                           face.                                       */  /*                                                                       */  /*    charmaps            :: A table of pointers to the face's charmaps. */  /*                           Used to scan the list of available charmaps */  /*                           -- this table might change after a call to  */  /*                           FT_Attach_File/Stream (e.g. when used to    */  /*                           hook an additional encoding/CMap to the     */  /*                           face object).                               */  /*                                                                       */  /*    generic             :: A field reserved for client uses.  See the  */  /*                           FT_Generic type description.                */  /*                                                                       */  /*    bbox                :: The font bounding box.  Coordinates are     */  /*                           expressed in font units (see units_per_EM). */  /*                           The box is large enough to contain any      */  /*                           glyph from the font.  Thus, bbox.yMax can   */  /*                           be seen as the `maximal ascender',          */  /*                           bbox.yMin as the `minimal descender', and   */  /*                           the maximal glyph width is given by         */  /*                           `bbox.xMax-bbox.xMin' (not to be confused   */  /*                           with the maximal _advance_width_).  Only    */  /*                           relevant for scalable formats.              */  /*                                                                       */  /*    units_per_EM        :: The number of font units per EM square for  */  /*                           this face.  This is typically 2048 for      */  /*                           TrueType fonts, 1000 for Type1 fonts, and   */  /*                           should be set to the (unrealistic) value 1  */  /*                           for fixed-sizes fonts.  Only relevant for   */  /*                           scalable formats.                           */  /*                                                                       */  /*    ascender            :: The face's ascender is the vertical         */  /*                           distance from the baseline to the topmost   */  /*                           point of any glyph in the face.  This       */  /*                           field's value is positive, expressed in     */  /*                           font units.  Some font designs use a value  */  /*                           different from `bbox.yMax'.  Only relevant  */  /*                           for scalable formats.                       */  /*                                                                       */  /*    descender           :: The face's descender is the vertical        */  /*                           distance from the baseline to the           */  /*                           bottommost point of any glyph in the face.  */  /*                           This field's value is positive, expressed   */  /*                           in font units.  Some font designs use a     */  /*                           value different from `-bbox.yMin'.  Only    */  /*                           relevant for scalable formats.              */  /*                                                                       */  /*    height              :: The face's height is the vertical distance  */  /*                           from one baseline to the next when writing  */  /*                           several lines of text.  Its value is always */  /*                           positive, expressed in font units.  The     */  /*                           value can be computed as                    */  /*                           `ascender+descender+line_gap' where the     */  /*                           value of `line_gap' is also called          */  /*                           `external leading'.  Only relevant for      */  /*                           scalable formats.                           */  /*                                                                       */  /*    max_advance_width   :: The maximal advance width, in font units,   */  /*                           for all glyphs in this face.  This can be   */  /*                           used to make word wrapping computations     */  /*                           faster.  Only relevant for scalable         */  /*                           formats.                                    */  /*                                                                       */  /*    max_advance_height  :: The maximal advance height, in font units,  */  /*                           for all glyphs in this face.  This is only  */  /*                           relevant for vertical layouts, and should   */  /*                           be set to the `height' for fonts that do    */  /*                           not provide vertical metrics.  Only         */  /*                           relevant for scalable formats.              */  /*                                                                       */  /*    underline_position  :: The position, in font units, of the         */  /*                           underline line for this face.  It's the     */  /*                           center of the underlining stem.  Only       */  /*                           relevant for scalable formats.              */  /*                                                                       */  /*    underline_thickness :: The thickness, in font units, of the        */  /*                           underline for this face.  Only relevant for */  /*                           scalable formats.                           */  /*                                                                       */  /*    driver              :: A handle to the face's parent driver        */  /*                           object.                                     */  /*                                                                       */  /*    memory              :: A handle to the face's parent memory        */

⌨️ 快捷键说明

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