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

📄 ahtypes.h

📁 qt-embedded-2.3.8.tar.gz源码
💻 H
📖 第 1 页 / 共 2 页
字号:
  /*    contour    :: A pointer to the first point of the segment's        */  /*                  contour.                                             */  /*                                                                       */  /*    pos        :: The segment position in font units.                  */  /*                                                                       */  /*    size       :: The segment size.                                    */  /*                                                                       */  /*    edge       :: The edge of the current segment.                     */  /*                                                                       */  /*    edge_next  :: The next segment on the same edge.                   */  /*                                                                       */  /*    link       :: The pairing segment for this edge.                   */  /*                                                                       */  /*    serif      :: The primary segment for serifs.                      */  /*                                                                       */  /*    num_linked :: The number of other segments that link to this one.  */  /*                                                                       */  /*    score      :: Used to score the segment when selecting them.       */  /*                                                                       */  struct AH_Segment  {    AH_Edge_Flags  flags;    AH_Direction   dir;    AH_Point*      first;       /* first point in edge segment             */    AH_Point*      last;        /* last point in edge segment              */    AH_Point**     contour;     /* ptr to first point of segment's contour */    FT_Pos         pos;         /* position of segment           */    FT_Pos         min_coord;   /* minimum coordinate of segment */    FT_Pos         max_coord;   /* maximum coordinate of segment */    AH_Edge*       edge;    AH_Segment*    edge_next;    AH_Segment*    link;        /* link segment               */    AH_Segment*    serif;       /* primary segment for serifs */    FT_Pos         num_linked;  /* number of linked segments  */    FT_Int         score;  };  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    AH_Edge                                                            */  /*                                                                       */  /* <Description>                                                         */  /*    A structure used to describe an edge, which really is a horizontal */  /*    or vertical coordinate to be hinted depending on the segments      */  /*    located on it.                                                     */  /*                                                                       */  /* <Fields>                                                              */  /*    flags      :: The segment edge flags (straight, rounded, etc.).    */  /*                                                                       */  /*    dir        :: The main segment direction on this edge.             */  /*                                                                       */  /*    first      :: The first edge segment.                              */  /*                                                                       */  /*    last       :: The last edge segment.                               */  /*                                                                       */  /*    fpos       :: The original edge position in font units.            */  /*                                                                       */  /*    opos       :: The original scaled edge position.                   */  /*                                                                       */  /*    pos        :: The hinted edge position.                            */  /*                                                                       */  /*    link       :: The linked edge.                                     */  /*                                                                       */  /*    serif      :: The serif edge.                                      */  /*                                                                       */  /*    num_paired :: The number of other edges that pair to this one.     */  /*                                                                       */  /*    score      :: Used to score the edge when selecting them.          */  /*                                                                       */  /*    blue_edge  :: Indicate the blue zone edge this edge is related to. */  /*                  Only set for some of the horizontal edges in a Latin */  /*                  font.                                                */  /*                                                                       */  struct AH_Edge  {    AH_Edge_Flags  flags;    AH_Direction   dir;    AH_Segment*    first;    AH_Segment*    last;    FT_Pos         fpos;    FT_Pos         opos;    FT_Pos         pos;    AH_Edge*       link;    AH_Edge*       serif;    FT_Int         num_linked;    FT_Int         score;    FT_Pos*        blue_edge;  };  /* an outline as seen by the hinter */  typedef struct  AH_Outline_  {    FT_Memory     memory;    AH_Direction  vert_major_dir;   /* vertical major direction   */    AH_Direction  horz_major_dir;   /* horizontal major direction */    FT_Fixed      x_scale;    FT_Fixed      y_scale;    FT_Pos        edge_distance_threshold;    FT_Int        max_points;    FT_Int        num_points;    AH_Point*     points;    FT_Int        max_contours;    FT_Int        num_contours;    AH_Point**    contours;    FT_Int        num_hedges;    AH_Edge*      horz_edges;    FT_Int        num_vedges;    AH_Edge*      vert_edges;    FT_Int        num_hsegments;    AH_Segment*   horz_segments;    FT_Int        num_vsegments;    AH_Segment*   vert_segments;  } AH_Outline;#define ah_blue_capital_top     0                              /* THEZOCQS */#define ah_blue_capital_bottom  ( ah_blue_capital_top + 1 )    /* HEZLOCUS */#define ah_blue_small_top       ( ah_blue_capital_bottom + 1 ) /* xzroesc  */#define ah_blue_small_bottom    ( ah_blue_small_top + 1 )      /* xzroesc  */#define ah_blue_small_minor     ( ah_blue_small_bottom + 1 )   /* pqgjy    */#define ah_blue_max             ( ah_blue_small_minor + 1 )  typedef FT_Int  AH_Blue;#define ah_hinter_monochrome  1#define ah_hinter_optimize    2  typedef FT_Int  AH_Hinter_Flags;  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    AH_Globals                                                         */  /*                                                                       */  /* <Description>                                                         */  /*    Holds the global metrics for a given font face (be it in design    */  /*    units or scaled pixel values).                                     */  /*                                                                       */  /* <Fields>                                                              */  /*    num_widths  :: The number of widths.                               */  /*                                                                       */  /*    num_heights :: The number of heights.                              */  /*                                                                       */  /*    widths      :: Snap widths, including standard one.                */  /*                                                                       */  /*    heights     :: Snap height, including standard one.                */  /*                                                                       */  /*    blue_refs   :: The reference positions of blue zones.              */  /*                                                                       */  /*    blue_shoots :: The overshoot positions of blue zones.              */  /*                                                                       */  typedef struct AH_Globals_  {    FT_Int    num_widths;    FT_Int    num_heights;    FT_Pos    widths [AH_MAX_WIDTHS];    FT_Pos    heights[AH_MAX_HEIGHTS];    FT_Pos    blue_refs  [ah_blue_max];    FT_Pos    blue_shoots[ah_blue_max];  } AH_Globals;  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    AH_Face_Globals                                                    */  /*                                                                       */  /* <Description>                                                         */  /*    Holds the complete global metrics for a given font face (i.e., the */  /*    design units version + a scaled version + the current scales       */  /*    used).                                                             */  /*                                                                       */  /* <Fields>                                                              */  /*    face    :: A handle to the source face object                      */  /*                                                                       */  /*    design  :: The globals in font design units.                       */  /*                                                                       */  /*    scaled  :: Scaled globals in sub-pixel values.                     */  /*                                                                       */  /*    x_scale :: The current horizontal scale.                           */  /*                                                                       */  /*    y_scale :: The current vertical scale.                             */  /*                                                                       */  typedef struct  AH_Face_Globals_  {    FT_Face     face;    AH_Globals  design;    AH_Globals  scaled;    FT_Fixed    x_scale;    FT_Fixed    y_scale;    FT_Bool     control_overshoot;  } AH_Face_Globals;  typedef struct  AH_Hinter  {    FT_Memory         memory;    AH_Hinter_Flags   flags;    FT_Int            algorithm;    FT_Face           face;    AH_Face_Globals*  globals;    AH_Outline*       glyph;    AH_Loader*        loader;    FT_Vector         pp1;    FT_Vector         pp2;    FT_Bool           transformed;    FT_Vector         trans_delta;    FT_Matrix         trans_matrix;  } AH_Hinter;#ifdef __cplusplus  }#endif#endif /* AHTYPES_H *//* END */

⌨️ 快捷键说明

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