afhints.h File Reference

#include "aftypes.h"

Go to the source code of this file.

Classes

struct  AF_PointRec_
struct  AF_SegmentRec_
struct  AF_EdgeRec_
struct  AF_AxisHintsRec_
struct  AF_GlyphHintsRec_

Defines

#define xxAF_SORT_SEGMENTS
#define AF_HINTS_TEST_SCALER(h, f)   ( (h)->scaler_flags & (f) )
#define AF_HINTS_TEST_OTHER(h, f)   ( (h)->other_flags & (f) )
#define AF_HINTS_DO_HORIZONTAL(h)   !AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_HORIZONTAL )
#define AF_HINTS_DO_VERTICAL(h)   !AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_VERTICAL )
#define AF_HINTS_DO_ADVANCE(h)   !AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_ADVANCE )
#define AF_HINTS_DO_BLUES(h)   1
#define AF_SEGMENT_LEN(seg)   ( (seg)->max_coord - (seg)->min_coord )
#define AF_SEGMENT_DIST(seg1, seg2)

Typedefs

typedef FT_BEGIN_HEADER enum
AF_Dimension_ 
AF_Dimension
typedef enum AF_Direction_ AF_Direction
typedef enum AF_Flags_ AF_Flags
typedef enum AF_Edge_Flags_ AF_Edge_Flags
typedef AF_PointRec_AF_Point
typedef AF_SegmentRec_AF_Segment
typedef AF_EdgeRec_AF_Edge
typedef AF_PointRec_ AF_PointRec
typedef AF_SegmentRec_ AF_SegmentRec
typedef AF_EdgeRec_ AF_EdgeRec
typedef AF_AxisHintsRec_ AF_AxisHintsRec
typedef AF_AxisHintsRec_AF_AxisHints
typedef AF_GlyphHintsRec_ AF_GlyphHintsRec

Enumerations

enum  AF_Dimension_
enum  AF_Direction_
enum  AF_Flags_
enum  AF_Edge_Flags_

Functions

 af_direction_compute (FT_Pos dx, FT_Pos dy)
 af_axis_hints_new_segment (AF_AxisHints axis, FT_Memory memory, AF_Segment *asegment)
 af_axis_hints_new_edge (AF_AxisHints axis, FT_Int fpos, AF_Direction dir, FT_Memory memory, AF_Edge *edge)
 af_glyph_hints_init (AF_GlyphHints hints, FT_Memory memory)
 af_glyph_hints_rescale (AF_GlyphHints hints, AF_ScriptMetrics metrics)
 af_glyph_hints_reload (AF_GlyphHints hints, FT_Outline *outline, FT_Bool get_inflections)
 af_glyph_hints_save (AF_GlyphHints hints, FT_Outline *outline)
 af_glyph_hints_align_edge_points (AF_GlyphHints hints, AF_Dimension dim)
 af_glyph_hints_align_strong_points (AF_GlyphHints hints, AF_Dimension dim)
 af_glyph_hints_align_weak_points (AF_GlyphHints hints, AF_Dimension dim)
 af_glyph_hints_done (AF_GlyphHints hints)


Define Documentation

#define AF_HINTS_DO_ADVANCE ( h   )     !AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_ADVANCE )

Definition at line 248 of file afhints.h.

Referenced by af_loader_load_g().

#define AF_HINTS_DO_BLUES ( h   )     1

Definition at line 251 of file afhints.h.

Referenced by af_latin2_hint_edges(), and af_latin_hint_edges().

#define AF_HINTS_DO_HORIZONTAL ( h   )     !AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_HORIZONTAL )

Definition at line 242 of file afhints.h.

Referenced by af_latin2_hints_apply(), and af_latin_hints_apply().

#define AF_HINTS_DO_VERTICAL ( h   )     !AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_VERTICAL )

Definition at line 245 of file afhints.h.

Referenced by af_latin2_hints_apply(), and af_latin_hints_apply().

#define AF_HINTS_TEST_OTHER ( h,
 )     ( (h)->other_flags & (f) )

Definition at line 222 of file afhints.h.

#define AF_HINTS_TEST_SCALER ( h,
 )     ( (h)->scaler_flags & (f) )

Definition at line 221 of file afhints.h.

#define AF_SEGMENT_DIST ( seg1,
seg2   ) 

Value:

( ( (seg1)->pos > (seg2)->pos )   \
                                           ? (seg1)->pos - (seg2)->pos   \
                                           : (seg2)->pos - (seg1)->pos )

Definition at line 323 of file afhints.h.

#define AF_SEGMENT_LEN ( seg   )     ( (seg)->max_coord - (seg)->min_coord )

Definition at line 321 of file afhints.h.

#define xxAF_SORT_SEGMENTS

Definition at line 24 of file afhints.h.


Typedef Documentation

typedef struct AF_AxisHintsRec_ * AF_AxisHints

typedef struct AF_AxisHintsRec_ AF_AxisHintsRec

typedef FT_BEGIN_HEADER enum AF_Dimension_ AF_Dimension

typedef enum AF_Direction_ AF_Direction

typedef struct AF_EdgeRec_* AF_Edge

Definition at line 102 of file afhints.h.

typedef enum AF_Edge_Flags_ AF_Edge_Flags

typedef struct AF_EdgeRec_ AF_EdgeRec

typedef enum AF_Flags_ AF_Flags

typedef struct AF_GlyphHintsRec_ AF_GlyphHintsRec

typedef struct AF_PointRec_* AF_Point

Definition at line 100 of file afhints.h.

typedef struct AF_PointRec_ AF_PointRec

typedef struct AF_SegmentRec_* AF_Segment

Definition at line 101 of file afhints.h.

typedef struct AF_SegmentRec_ AF_SegmentRec


Enumeration Type Documentation

enum AF_Dimension_

Definition at line 33 of file afhints.h.

enum AF_Direction_

Definition at line 47 of file afhints.h.

enum AF_Edge_Flags_

Definition at line 90 of file afhints.h.

enum AF_Flags_

Definition at line 59 of file afhints.h.


Function Documentation

af_axis_hints_new_edge ( AF_AxisHints  axis,
FT_Int  fpos,
AF_Direction  dir,
FT_Memory  memory,
AF_Edge edge 
)

Definition at line 65 of file afhints.c.

References AF_EdgeRec_::dir, error, AF_EdgeRec_::fpos, FT_INT_MAX, FT_RENEW_ARRAY, FT_ZERO, and NULL.

Referenced by af_latin_hints_compute_edges().

af_axis_hints_new_segment ( AF_AxisHints  axis,
FT_Memory  memory,
AF_Segment asegment 
)

Definition at line 25 of file afhints.c.

References error, FT_INT_MAX, FT_RENEW_ARRAY, and NULL.

af_direction_compute ( FT_Pos  dx,
FT_Pos  dy 
)

Definition at line 334 of file afhints.c.

References AF_DIR_DOWN, AF_DIR_LEFT, AF_DIR_NONE, AF_DIR_RIGHT, AF_DIR_UP, FT_ABS, and FT_Pos.

Referenced by af_glyph_hints_reload().

af_glyph_hints_align_edge_points ( AF_GlyphHints  hints,
AF_Dimension  dim 
)

Definition at line 798 of file afhints.c.

References AF_DIMENSION_HORZ, AF_FLAG_TOUCH_X, AF_FLAG_TOUCH_Y, axis, AF_SegmentRec_::edge, AF_SegmentRec_::first, if(), AF_SegmentRec_::last, NULL, AF_EdgeRec_::pos, POINT::x, and POINT::y.

Referenced by af_latin2_hints_apply(), and af_latin_hints_apply().

af_glyph_hints_align_strong_points ( AF_GlyphHints  hints,
AF_Dimension  dim 
)

Definition at line 874 of file afhints.c.

References AF_DIMENSION_HORZ, AF_DIMENSION_VERT, AF_FLAG_INFLECTION, AF_FLAG_TOUCH_X, AF_FLAG_TOUCH_Y, AF_FLAG_WEAK_INTERPOLATION, axis, AF_EdgeRec_::fpos, FT_DivFix(), FT_MulFix(), FT_Pos, if(), max, min, AF_EdgeRec_::opos, points, AF_EdgeRec_::pos, AF_EdgeRec_::scale, u, POINT::x, and POINT::y.

Referenced by af_latin2_hints_apply(), and af_latin_hints_apply().

af_glyph_hints_align_weak_points ( AF_GlyphHints  hints,
AF_Dimension  dim 
)

Definition at line 1112 of file afhints.c.

References AF_DIMENSION_HORZ, AF_FLAG_TOUCH_X, AF_FLAG_TOUCH_Y, af_iup_interp(), af_iup_shift(), FT_ASSERT, points, POINT::x, and POINT::y.

Referenced by af_latin2_hints_apply(), and af_latin_hints_apply().

af_glyph_hints_done ( AF_GlyphHints  hints  ) 

Definition at line 504 of file afhints.c.

References AF_DIMENSION_MAX, axis, FT_FREE, and NULL.

Referenced by af_loader_done().

af_glyph_hints_init ( AF_GlyphHints  hints,
FT_Memory  memory 
)

Definition at line 495 of file afhints.c.

References FT_ZERO.

Referenced by af_latin2_metrics_init_widths(), af_latin_metrics_init_widths(), and af_loader_init().

af_glyph_hints_reload ( AF_GlyphHints  hints,
FT_Outline outline,
FT_Bool  get_inflections 
)

Definition at line 553 of file afhints.c.

References AF_DIMENSION_HORZ, AF_DIMENSION_VERT, AF_DIR_DOWN, AF_DIR_LEFT, AF_DIR_NONE, AF_DIR_RIGHT, AF_DIR_UP, af_direction_compute(), AF_FLAG_CONIC, AF_FLAG_CUBIC, AF_FLAG_WEAK_INTERPOLATION, af_glyph_hints_compute_inflections(), error, ft_corner_is_flat(), FT_CURVE_TAG, FT_CURVE_TAG_CONIC, FT_CURVE_TAG_CUBIC, FT_MulFix(), FT_ORIENTATION_POSTSCRIPT, FT_Outline_Get_Orientation(), FT_Pos, FT_RENEW_ARRAY, FT_UNUSED, AF_PointRec_::fx, AF_PointRec_::fy, if(), AF_PointRec_::next, NULL, points, short, POINT::x, and POINT::y.

Referenced by af_latin2_hints_apply(), af_latin2_metrics_init_widths(), af_latin_hints_apply(), and af_latin_metrics_init_widths().

af_glyph_hints_rescale ( AF_GlyphHints  hints,
AF_ScriptMetrics  metrics 
)

Definition at line 544 of file afhints.c.

Referenced by af_dummy_hints_init(), af_latin2_hints_init(), af_latin2_metrics_init_widths(), af_latin_hints_init(), and af_latin_metrics_init_widths().

af_glyph_hints_save ( AF_GlyphHints  hints,
FT_Outline outline 
)

Definition at line 766 of file afhints.c.

References AF_FLAG_CONIC, AF_FLAG_CUBIC, FT_CURVE_TAG_CONIC, FT_CURVE_TAG_CUBIC, FT_CURVE_TAG_ON, if(), POINT::x, and POINT::y.


Generated on Tue Jul 5 15:58:21 2011 for ROOT_528-00b_version by  doxygen 1.5.1