afhints.c File Reference

#include "afhints.h"
#include "aferrors.h"

Go to the source code of this file.

Functions

 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 *aedge)
void af_glyph_hints_dump_points (AF_GlyphHints hints)
void af_glyph_hints_dump_segments (AF_GlyphHints hints)
void af_glyph_hints_dump_edges (AF_GlyphHints hints)
 af_direction_compute (FT_Pos dx, FT_Pos dy)
static void af_glyph_hints_compute_inflections (AF_GlyphHints hints)
 af_glyph_hints_init (AF_GlyphHints hints, FT_Memory memory)
 af_glyph_hints_done (AF_GlyphHints hints)
 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)
static void af_iup_shift (AF_Point p1, AF_Point p2, AF_Point ref)
static void af_iup_interp (AF_Point p1, AF_Point p2, AF_Point ref1, AF_Point ref2)
 af_glyph_hints_align_weak_points (AF_GlyphHints hints, AF_Dimension dim)


Function Documentation

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

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().

static void af_glyph_hints_compute_inflections ( AF_GlyphHints  hints  )  [static]

Definition at line 383 of file afhints.c.

References AF_FLAG_INFLECTION, AF_GlyphHintsRec_::contours, finished, ft_corner_orientation(), FT_Pos, AF_PointRec_::fx, AF_PointRec_::fy, AF_PointRec_::next, AF_GlyphHintsRec_::num_contours, AF_PointRec_::prev, and start.

Referenced by af_glyph_hints_reload().

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().

void af_glyph_hints_dump_edges ( AF_GlyphHints  hints  ) 

Definition at line 324 of file afhints.c.

References FT_UNUSED.

void af_glyph_hints_dump_points ( AF_GlyphHints  hints  ) 

Definition at line 310 of file afhints.c.

References FT_UNUSED.

void af_glyph_hints_dump_segments ( AF_GlyphHints  hints  ) 

Definition at line 317 of file afhints.c.

References FT_UNUSED.

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.

static void af_iup_interp ( AF_Point  p1,
AF_Point  p2,
AF_Point  ref1,
AF_Point  ref2 
) [static]

Definition at line 1044 of file afhints.c.

References FT_MulDiv(), FT_Pos, if(), p, p1(), p2(), AF_PointRec_::u, u, AF_PointRec_::v, and v1.

Referenced by af_glyph_hints_align_weak_points().

static void af_iup_shift ( AF_Point  p1,
AF_Point  p2,
AF_Point  ref 
) [static]

Definition at line 1025 of file afhints.c.

References for(), FT_Pos, p, p1(), and p2().

Referenced by af_glyph_hints_align_weak_points().


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