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

📄 freetype.h

📁 qt-x11-opensource-src-4.1.4.tar.gz源码
💻 H
📖 第 1 页 / 共 5 页
字号:
  /*    horiBearingY ::                                                    */  /*      Top side bearing for horizontal layout.                          */  /*                                                                       */  /*    horiAdvance ::                                                     */  /*      Advance width for horizontal layout.                             */  /*                                                                       */  /*    vertBearingX ::                                                    */  /*      Left side bearing for vertical layout.                           */  /*                                                                       */  /*    vertBearingY ::                                                    */  /*      Top side bearing for vertical layout.                            */  /*                                                                       */  /*    vertAdvance ::                                                     */  /*      Advance height for vertical layout.                              */  /*                                                                       */  typedef struct  FT_Glyph_Metrics_  {    FT_Pos  width;    FT_Pos  height;    FT_Pos  horiBearingX;    FT_Pos  horiBearingY;    FT_Pos  horiAdvance;    FT_Pos  vertBearingX;    FT_Pos  vertBearingY;    FT_Pos  vertAdvance;  } FT_Glyph_Metrics;  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    FT_Bitmap_Size                                                     */  /*                                                                       */  /* <Description>                                                         */  /*    This structure models the size of a bitmap strike (i.e., a bitmap  */  /*    instance of the font for a given resolution) in a fixed-size font  */  /*    face.  It is used for the `available_sizes' field of the           */  /*    @FT_FaceRec structure.                                             */  /*                                                                       */  /* <Fields>                                                              */  /*    height :: The (vertical) baseline-to-baseline distance in pixels.  */  /*              It makes most sense to define the height of a bitmap     */  /*              font in this way.                                        */  /*                                                                       */  /*    width  :: The average width of the font (in pixels).  Since the    */  /*              algorithms to compute this value are different for the   */  /*              various bitmap formats, it can only give an additional   */  /*              hint if the `height' value isn't sufficient to select    */  /*              the proper font.  For monospaced fonts the average width */  /*              is the same as the maximum width.                        */  /*                                                                       */  /*    size   :: The point size in 26.6 fractional format this font shall */  /*              represent (for a given vertical resolution).             */  /*                                                                       */  /*    x_ppem :: The horizontal ppem value (in 26.6 fractional format).   */  /*                                                                       */  /*    y_ppem :: The vertical ppem value (in 26.6 fractional format).     */  /*              Usually, this is the `nominal' pixel height of the font. */  /*                                                                       */  /* <Note>                                                                */  /*    The values in this structure are taken from the bitmap font.  If   */  /*    the font doesn't provide a parameter it is set to zero to indicate */  /*    that the information is not available.                             */  /*                                                                       */  /*    The following formula converts from dpi to ppem:                   */  /*                                                                       */  /*      ppem = size * dpi / 72                                           */  /*                                                                       */  /*    where `size' is in points.                                         */  /*                                                                       */  /*    Windows FNT:                                                       */  /*      The `size' parameter is not reliable: There exist fonts (e.g.,   */  /*      app850.fon) which have a wrong size for some subfonts; x_ppem    */  /*      and y_ppem are thus set equal to pixel width and height given in */  /*      in the Windows FNT header.                                       */  /*                                                                       */  /*    TrueType embedded bitmaps:                                         */  /*      `size', `width', and `height' values are not contained in the    */  /*      bitmap strike itself.  They are computed from the global font    */  /*      parameters.                                                      */  /*                                                                       */  typedef struct  FT_Bitmap_Size_  {    FT_Short  height;    FT_Short  width;    FT_Pos    size;    FT_Pos    x_ppem;    FT_Pos    y_ppem;  } FT_Bitmap_Size;  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /*                     O B J E C T   C L A S S E S                       */  /*                                                                       */  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FT_Library                                                         */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a FreeType library instance.  Each `library' is        */  /*    completely independent from the others; it is the `root' of a set  */  /*    of objects like fonts, faces, sizes, etc.                          */  /*                                                                       */  /*    It also embeds a memory manager (see @FT_Memory), as well as a     */  /*    scan-line converter object (see @FT_Raster).                       */  /*                                                                       */  /* <Note>                                                                */  /*    Library objects are normally created by @FT_Init_FreeType, and     */  /*    destroyed with @FT_Done_FreeType.                                  */  /*                                                                       */  typedef struct FT_LibraryRec_  *FT_Library;  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FT_Module                                                          */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a given FreeType module object.  Each module can be a  */  /*    font driver, a renderer, or anything else that provides services   */  /*    to the formers.                                                    */  /*                                                                       */  typedef struct FT_ModuleRec_*  FT_Module;  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FT_Driver                                                          */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a given FreeType font driver object.  Each font driver */  /*    is a special module capable of creating faces from font files.     */  /*                                                                       */  typedef struct FT_DriverRec_*  FT_Driver;  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FT_Renderer                                                        */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a given FreeType renderer.  A renderer is a special    */  /*    module in charge of converting a glyph image to a bitmap, when     */  /*    necessary.  Each renderer supports a given glyph image format, and */  /*    one or more target surface depths.                                 */  /*                                                                       */  typedef struct FT_RendererRec_*  FT_Renderer;  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FT_Face                                                            */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a given typographic face object.  A face object models */  /*    a given typeface, in a given style.                                */  /*                                                                       */  /* <Note>                                                                */  /*    Each face object also owns a single @FT_GlyphSlot object, as well  */  /*    as one or more @FT_Size objects.                                   */  /*                                                                       */  /*    Use @FT_New_Face or @FT_Open_Face to create a new face object from */  /*    a given filepathname or a custom input stream.                     */  /*                                                                       */  /*    Use @FT_Done_Face to destroy it (along with its slot and sizes).   */  /*                                                                       */  /* <Also>                                                                */  /*    The @FT_FaceRec details the publicly accessible fields of a given  */  /*    face object.                                                       */  /*                                                                       */  typedef struct FT_FaceRec_*  FT_Face;  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FT_Size                                                            */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a given size object.  Such an object models the data   */  /*    that depends on the current _resolution_ and _character size_ in a */  /*    given @FT_Face.                                                    */  /*                                                                       */  /* <Note>                                                                */

⌨️ 快捷键说明

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