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

📄 tttables.h

📁 qt-embedded-2.3.8.tar.gz源码
💻 H
📖 第 1 页 / 共 3 页
字号:
  /* <Description>                                                         */  /*    A structure used to model a TrueType vertical header, the `vhea'   */  /*    table, as well as the corresponding vertical metrics table, i.e.,  */  /*    the `vmtx' table.                                                  */  /*                                                                       */  /* <Fields>                                                              */  /*    Version                 :: The table version.                      */  /*                                                                       */  /*    Ascender                :: The font's ascender, i.e., the distance */  /*                               from the baseline to the top-most of    */  /*                               all glyph points found in the font.     */  /*                                                                       */  /*                               This value is invalid in many fonts, as */  /*                               it is usually set by the font designer, */  /*                               and often reflects only a portion of    */  /*                               the glyphs found in the font (maybe     */  /*                               ASCII).                                 */  /*                                                                       */  /*                               You should use the `sTypoAscender'      */  /*                               field of the OS/2 table instead if you  */  /*                               want the correct one.                   */  /*                                                                       */  /*    Descender               :: The font's descender, i.e., the         */  /*                               distance from the baseline to the       */  /*                               bottom-most of all glyph points found   */  /*                               in the font.  It is negative.           */  /*                                                                       */  /*                               This value is invalid in many fonts, as */  /*                               it is usually set by the font designer, */  /*                               and often reflects only a portion of    */  /*                               the glyphs found in the font (maybe     */  /*                               ASCII).                                 */  /*                                                                       */  /*                               You should use the `sTypoDescender'     */  /*                               field of the OS/2 table instead if you  */  /*                               want the correct one.                   */  /*                                                                       */  /*    Line_Gap                :: The font's line gap, i.e., the distance */  /*                               to add to the ascender and descender to */  /*                               get the BTB, i.e., the                  */  /*                               baseline-to-baseline distance for the   */  /*                               font.                                   */  /*                                                                       */  /*    advance_Height_Max      :: This field is the maximum of all        */  /*                               advance heights found in the font.  It  */  /*                               can be used to compute the maximum      */  /*                               height of an arbitrary string of text.  */  /*                                                                       */  /*    min_Top_Side_Bearing    :: The minimum top side bearing of all     */  /*                               glyphs within the font.                 */  /*                                                                       */  /*    min_Bottom_Side_Bearing :: The minimum bottom side bearing of all  */  /*                               glyphs within the font.                 */  /*                                                                       */  /*    yMax_Extent             :: The maximum vertical extent (i.e., the  */  /*                               `height' of a glyph's bounding box) for */  /*                               all glyphs in the font.                 */  /*                                                                       */  /*    caret_Slope_Rise        :: The rise coefficient of the cursor's    */  /*                               slope of the cursor (slope=rise/run).   */  /*                                                                       */  /*    caret_Slope_Run         :: The run coefficient of the cursor's     */  /*                               slope.                                  */  /*                                                                       */  /*    Reserved                :: 10 reserved bytes.                      */  /*                                                                       */  /*    metric_Data_Format      :: Always 0.                               */  /*                                                                       */  /*    number_Of_HMetrics      :: Number of VMetrics entries in the       */  /*                               `vmtx' table -- this value can be       */  /*                               smaller than the total number of glyphs */  /*                               in the font.                            */  /*                                                                       */  /*    long_metrics           :: A pointer into the `vmtx' table.         */  /*                                                                       */  /*    short_metrics          :: A pointer into the `vmtx' table.         */  /*                                                                       */  /* <Note>                                                                */  /*    IMPORTANT: The TT_HoriHeader and TT_VertHeader structures should   */  /*               be identical except for the names of their fields which */  /*               are different.                                          */  /*                                                                       */  /*               This ensures that a single function in the `ttload'     */  /*               module is able to read both the horizontal and vertical */  /*               headers.                                                */  /*                                                                       */  typedef struct TT_VertHeader_  {    FT_Fixed   Version;    FT_Short   Ascender;    FT_Short   Descender;    FT_Short   Line_Gap;    FT_UShort  advance_Height_Max;      /* advance height maximum */    FT_Short   min_Top_Side_Bearing;    /* minimum left-sb or top-sb       */    FT_Short   min_Bottom_Side_Bearing; /* minimum right-sb or bottom-sb   */    FT_Short   yMax_Extent;             /* xmax or ymax extents            */    FT_Short   caret_Slope_Rise;    FT_Short   caret_Slope_Run;    FT_Short   caret_Offset;    FT_Short   Reserved[4];    FT_Short   metric_Data_Format;    FT_UShort  number_Of_VMetrics;    /* The following fields are not defined by the TrueType specification */    /* but they're used to connect the metrics header to the relevant     */    /* `HMTX' or `VMTX' table.                                            */    void*      long_metrics;    void*      short_metrics;  } TT_VertHeader;  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    TT_OS2                                                             */  /*                                                                       */  /* <Description>                                                         */  /*    A structure used to model a TrueType OS/2 table. This is the long  */  /*    table version.  All fields comply to the TrueType specification.   */  /*                                                                       */  /*    Note that we now support old Mac fonts which do not include an     */  /*    OS/2 table.  In this case, the `version' field is always set to    */  /*    0xFFFF.                                                            */  /*                                                                       */  typedef struct  TT_OS2_  {    FT_UShort  version;                /* 0x0001 - more or 0xFFFF */    FT_Short   xAvgCharWidth;    FT_UShort  usWeightClass;    FT_UShort  usWidthClass;    FT_Short   fsType;    FT_Short   ySubscriptXSize;    FT_Short   ySubscriptYSize;    FT_Short   ySubscriptXOffset;    FT_Short   ySubscriptYOffset;    FT_Short   ySuperscriptXSize;    FT_Short   ySuperscriptYSize;    FT_Short   ySuperscriptXOffset;    FT_Short   ySuperscriptYOffset;    FT_Short   yStrikeoutSize;    FT_Short   yStrikeoutPosition;    FT_Short   sFamilyClass;    FT_Byte    panose[10];    FT_ULong   ulUnicodeRange1;        /* Bits 0-31   */    FT_ULong   ulUnicodeRange2;        /* Bits 32-63  */    FT_ULong   ulUnicodeRange3;        /* Bits 64-95  */    FT_ULong   ulUnicodeRange4;        /* Bits 96-127 */    FT_Char    achVendID[4];    FT_UShort  fsSelection;    FT_UShort  usFirstCharIndex;    FT_UShort  usLastCharIndex;    FT_Short   sTypoAscender;    FT_Short   sTypoDescender;    FT_Short   sTypoLineGap;    FT_UShort  usWinAscent;    FT_UShort  usWinDescent;    /* only version 1 tables: */    FT_ULong   ulCodePageRange1;       /* Bits 0-31   */    FT_ULong   ulCodePageRange2;       /* Bits 32-63  */    /* only version 2 tables: */    FT_Short   sxHeight;    FT_Short   sCapHeight;    FT_UShort  usDefaultChar;    FT_UShort  usBreakChar;    FT_UShort  usMaxContext;  } TT_OS2;  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    TT_Postscript                                                      */  /*                                                                       */  /* <Description>                                                         */  /*    A structure used to model a TrueType Postscript table.  All fields */  /*    comply to the TrueType table.  This structure does not reference   */  /*    the Postscript glyph names, which can be nevertheless accessed     */  /*    with the `ttpost' module.                                          */

⌨️ 快捷键说明

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