zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
afhints.c File Reference
#include "afhints.h"
#include "aferrors.h"
#include <FT_INTERNAL_CALC_H>

Go to the source code of this file.

Functions

 af_axis_hints_new_edge (AF_AxisHints axis, FT_Int fpos, AF_Direction dir, FT_Memory memory, AF_Edge *aedge)
 
 af_axis_hints_new_segment (AF_AxisHints axis, FT_Memory memory, AF_Segment *asegment)
 
 af_direction_compute (FT_Pos dx, FT_Pos dy)
 
 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)
 
void af_glyph_hints_dump_edges (AF_GlyphHints hints)
 
void af_glyph_hints_dump_points (AF_GlyphHints hints)
 
void af_glyph_hints_dump_segments (AF_GlyphHints hints)
 
FT_Error af_glyph_hints_get_num_segments (AF_GlyphHints hints, FT_Int dimension, FT_Int *num_segments)
 
FT_Error af_glyph_hints_get_segment_offset (AF_GlyphHints hints, FT_Int dimension, FT_Int idx, FT_Pos *offset)
 
 af_glyph_hints_init (AF_GlyphHints hints, FT_Memory memory)
 
 af_glyph_hints_reload (AF_GlyphHints hints, FT_Outline *outline)
 
 af_glyph_hints_rescale (AF_GlyphHints hints, AF_ScriptMetrics metrics)
 
 af_glyph_hints_save (AF_GlyphHints hints, FT_Outline *outline)
 
static void af_iup_interp (AF_Point p1, AF_Point p2, AF_Point ref1, AF_Point ref2)
 
static void af_iup_shift (AF_Point p1, AF_Point p2, AF_Point ref)
 

Function Documentation

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

Definition at line 27 of file afhints.c.

References error, FT_INT_MAX, FT_RENEW_ARRAY, and NULL.

Referenced by af_latin2_hints_compute_segments(), and af_latin_hints_compute_segments().

af_direction_compute ( FT_Pos  dx,
FT_Pos  dy 
)

Definition at line 459 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().

void af_glyph_hints_dump_edges ( AF_GlyphHints  hints)

Definition at line 444 of file afhints.c.

References FT_UNUSED.

void af_glyph_hints_dump_points ( AF_GlyphHints  hints)

Definition at line 402 of file afhints.c.

References FT_UNUSED.

void af_glyph_hints_dump_segments ( AF_GlyphHints  hints)

Definition at line 409 of file afhints.c.

References FT_UNUSED.

FT_Error af_glyph_hints_get_num_segments ( AF_GlyphHints  hints,
FT_Int  dimension,
FT_Int num_segments 
)

Definition at line 416 of file afhints.c.

References FT_UNUSED.

FT_Error af_glyph_hints_get_segment_offset ( AF_GlyphHints  hints,
FT_Int  dimension,
FT_Int  idx,
FT_Pos offset 
)

Definition at line 429 of file afhints.c.

References FT_UNUSED.

af_glyph_hints_init ( AF_GlyphHints  hints,
FT_Memory  memory 
)

Definition at line 508 of file afhints.c.

References FT_ZERO.

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

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

Definition at line 1073 of file afhints.c.

References FT_MulDiv(), FT_Pos, u, AF_PointRec_::u, and AF_PointRec_::v.

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 1046 of file afhints.c.

References for(), FT_Pos, AF_PointRec_::u, and AF_PointRec_::v.

Referenced by af_glyph_hints_align_weak_points().