zenilib
0.5.3.0
|
Go to the source code of this file.
Macros | |
#define | AF_LATIN_MAX_TEST_CHARACTERS 12 |
#define | FT_COMPONENT trace_aflatin2 |
#define | SORT_SEGMENTS |
Variables | |
static const char | af_latin2_blue_chars [AF_LATIN_MAX_BLUES][AF_LATIN_MAX_TEST_CHARACTERS+1] |
static const AF_Script_UniRangeRec | af_latin2_uniranges [] |
#define AF_LATIN_MAX_TEST_CHARACTERS 12 |
Definition at line 167 of file aflatin2.c.
Referenced by af_latin2_metrics_init_blues().
#define FT_COMPONENT trace_aflatin2 |
Definition at line 38 of file aflatin2.c.
#define SORT_SEGMENTS |
Definition at line 675 of file aflatin2.c.
|
static |
Definition at line 1762 of file aflatin2.c.
References af_latin2_compute_stem_width(), AF_GlyphHintsRec_::axis, AF_AxisHintsRec_::edges, AF_EdgeRec_::flags, FT_Pos, FT_TRACE5, AF_EdgeRec_::opos, and AF_EdgeRec_::pos.
Referenced by af_latin2_hint_edges().
|
static |
Definition at line 1785 of file aflatin2.c.
References FT_UNUSED, AF_EdgeRec_::opos, and AF_EdgeRec_::pos.
Referenced by af_latin2_hint_edges().
|
static |
Definition at line 1594 of file aflatin2.c.
References AF_DIMENSION_VERT, AF_EDGE_ROUND, AF_EDGE_SERIF, af_latin2_snap_width(), AF_LATIN_HINTS_DO_HORZ_SNAP, AF_LATIN_HINTS_DO_MONO, AF_LATIN_HINTS_DO_STEM_ADJUST, AF_LATIN_HINTS_DO_VERT_SNAP, AF_LatinMetricsRec_::axis, FT_Pos, FT_UNUSED, AF_GlyphHintsRec_::metrics, and sign.
Referenced by af_latin2_align_linked_edge(), and af_latin2_hint_edges().
af_latin2_hint_edges | ( | AF_GlyphHints | hints, |
AF_Dimension | dim | ||
) |
Definition at line 1807 of file aflatin2.c.
References AF_DIMENSION_HORZ, AF_DIMENSION_VERT, AF_EDGE_DONE, AF_HINTS_DO_BLUES, af_latin2_align_linked_edge(), af_latin2_align_serif_edge(), af_latin2_compute_stem_width(), AF_EdgeRec_::blue_edge, AF_AxisHintsRec_::edges, AF_EdgeRec_::flags, FT_ABS, FT_MulDiv(), FT_PIX_CEIL, FT_PIX_FLOOR, FT_PIX_ROUND, FT_Pos, FT_TRACE5, AF_EdgeRec_::link, NULL, AF_AxisHintsRec_::num_edges, AF_EdgeRec_::opos, AF_EdgeRec_::pos, and AF_EdgeRec_::serif.
Referenced by af_latin2_hints_apply().
|
static |
Definition at line 2274 of file aflatin2.c.
References AF_DIMENSION_HORZ, AF_DIMENSION_MAX, AF_DIMENSION_VERT, af_glyph_hints_align_edge_points(), af_glyph_hints_align_strong_points(), af_glyph_hints_align_weak_points(), af_glyph_hints_reload(), af_glyph_hints_save(), AF_HINTS_DO_HORIZONTAL, AF_HINTS_DO_VERTICAL, af_latin2_hint_edges(), af_latin2_hints_compute_blue_edges(), af_latin2_hints_detect_features(), af_warper_compute(), error, FT_Pos, FT_RENDER_MODE_LIGHT, AF_ScalerRec_::render_mode, AF_LatinMetricsRec_::root, and AF_ScriptMetricsRec_::scaler.
af_latin2_hints_compute_blue_edges | ( | AF_GlyphHints | hints, |
AF_LatinMetrics | metrics | ||
) |
Definition at line 1359 of file aflatin2.c.
References AF_DIMENSION_VERT, AF_EDGE_ROUND, AF_LATIN_BLUE_ACTIVE, AF_LATIN_BLUE_MAX, AF_LATIN_BLUE_TOP, AF_EdgeRec_::blue_edge, AF_LatinAxisRec_::blues, AF_EdgeRec_::dir, AF_AxisHintsRec_::edges, AF_LatinBlueRec_::flags, AF_EdgeRec_::flags, AF_EdgeRec_::fpos, FT_Bool, FT_BOOL, FT_MulFix(), FT_Pos, AF_AxisHintsRec_::major_dir, NULL, AF_AxisHintsRec_::num_edges, AF_LatinBlueRec_::ref, AF_LatinAxisRec_::scale, and AF_LatinBlueRec_::shoot.
Referenced by af_latin2_hints_apply().
af_latin2_hints_compute_edges | ( | AF_GlyphHints | hints, |
AF_Dimension | dim | ||
) |
Definition at line 1035 of file aflatin2.c.
References af_axis_hints_new_edge(), AF_DIMENSION_HORZ, AF_DIR_NONE, AF_DIR_RIGHT, AF_DIR_UP, AF_EDGE_NORMAL, AF_EDGE_ROUND, AF_EDGE_SERIF, AF_SegmentRec_::dir, AF_EdgeRec_::dir, AF_SegmentRec_::edge, AF_LatinAxisRec_::edge_distance_threshold, AF_SegmentRec_::edge_next, AF_AxisHintsRec_::edges, error, AF_EdgeRec_::first, AF_SegmentRec_::flags, AF_EdgeRec_::flags, AF_EdgeRec_::fpos, FT_Bool, FT_DivFix(), FT_MulFix(), FT_Pos, FT_ZERO, AF_SegmentRec_::height, AF_EdgeRec_::last, AF_SegmentRec_::link, AF_EdgeRec_::link, AF_SegmentRec_::max_coord, AF_SegmentRec_::min_coord, NULL, AF_AxisHintsRec_::num_edges, AF_AxisHintsRec_::num_segments, AF_EdgeRec_::opos, AF_SegmentRec_::pos, AF_EdgeRec_::pos, AF_AxisHintsRec_::segments, AF_SegmentRec_::serif, AF_EdgeRec_::serif, AF_LatinAxisRec_::standard_width, and AF_LatinAxisRec_::width_count.
Referenced by af_latin2_hints_detect_features().
af_latin2_hints_compute_segments | ( | AF_GlyphHints | hints, |
AF_Dimension | dim | ||
) |
Definition at line 678 of file aflatin2.c.
References af_axis_hints_new_segment(), AF_DIMENSION_HORZ, AF_EDGE_NORMAL, AF_EDGE_ROUND, AF_FLAG_CONTROL, AF_SegmentRec_::dir, error, AF_SegmentRec_::first, AF_PointRec_::flags, AF_SegmentRec_::flags, FT_ABS, FT_ASSERT, FT_Pos, FT_ZERO, AF_PointRec_::fx, AF_PointRec_::fy, AF_SegmentRec_::height, AF_PointRec_::in_dir, AF_SegmentRec_::last, AF_AxisHintsRec_::major_dir, AF_SegmentRec_::max_coord, AF_SegmentRec_::min_coord, AF_PointRec_::next, NULL, AF_AxisHintsRec_::num_segments, AF_PointRec_::out_dir, AF_SegmentRec_::pos, AF_PointRec_::prev, AF_SegmentRec_::score, AF_AxisHintsRec_::segments, AF_PointRec_::u, and AF_PointRec_::v.
Referenced by af_latin2_hints_detect_features(), and af_latin2_metrics_init_widths().
af_latin2_hints_detect_features | ( | AF_GlyphHints | hints, |
AF_Dimension | dim | ||
) |
Definition at line 1341 of file aflatin2.c.
References af_latin2_hints_compute_edges(), af_latin2_hints_compute_segments(), af_latin2_hints_link_segments(), and error.
Referenced by af_latin2_hints_apply().
|
static |
Definition at line 1465 of file aflatin2.c.
References AF_DIMENSION_HORZ, AF_DIMENSION_VERT, af_glyph_hints_rescale(), AF_LATIN_HINTS_HORZ_SNAP, AF_LATIN_HINTS_MONO, AF_LATIN_HINTS_STEM_ADJUST, AF_LATIN_HINTS_VERT_SNAP, AF_SCALER_FLAG_NO_HORIZONTAL, AF_ScalerRec_::face, FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V, FT_RENDER_MODE_LIGHT, FT_RENDER_MODE_MONO, FT_RENDER_MODE_NORMAL, FT_STYLE_FLAG_ITALIC, AF_GlyphHintsRec_::other_flags, AF_ScalerRec_::render_mode, AF_LatinMetricsRec_::root, AF_ScriptMetricsRec_::scaler, AF_GlyphHintsRec_::scaler_flags, FT_FaceRec_::style_flags, AF_GlyphHintsRec_::x_delta, AF_GlyphHintsRec_::x_scale, AF_GlyphHintsRec_::y_delta, and AF_GlyphHintsRec_::y_scale.
af_latin2_hints_link_segments | ( | AF_GlyphHints | hints, |
AF_Dimension | dim | ||
) |
Definition at line 935 of file aflatin2.c.
References AF_LATIN_CONSTANT, AF_SegmentRec_::dir, AF_SegmentRec_::first, FT_Pos, AF_SegmentRec_::last, AF_SegmentRec_::link, AF_AxisHintsRec_::major_dir, max, AF_SegmentRec_::max_coord, min, AF_SegmentRec_::min_coord, AF_AxisHintsRec_::num_segments, AF_SegmentRec_::pos, AF_SegmentRec_::score, AF_AxisHintsRec_::segments, and AF_SegmentRec_::serif.
Referenced by af_latin2_hints_detect_features(), and af_latin2_metrics_init_widths().
af_latin2_metrics_check_digits | ( | AF_LatinMetrics | metrics, |
FT_Face | face | ||
) |
Definition at line 419 of file aflatin2.c.
References FT_Bool, FT_Get_Advance(), FT_Get_Char_Index(), FT_LOAD_IGNORE_TRANSFORM, FT_LOAD_NO_HINTING, FT_LOAD_NO_SCALE, and i.
Referenced by af_latin2_metrics_init().
af_latin2_metrics_init | ( | AF_LatinMetrics | metrics, |
FT_Face | face | ||
) |
Definition at line 465 of file aflatin2.c.
References af_latin2_metrics_check_digits(), af_latin2_metrics_init_blues(), af_latin2_metrics_init_widths(), error, FT_Select_Charmap(), and FT_Set_Charmap().
|
static |
Definition at line 183 of file aflatin2.c.
References AF_DIMENSION_VERT, af_latin2_blue_chars, AF_LATIN_BLUE_ADJUSTMENT, AF_LATIN_BLUE_MAX, AF_LATIN_BLUE_SMALL_TOP, AF_LATIN_BLUE_TOP, AF_LATIN_IS_TOP_BLUE, AF_LATIN_MAX_TEST_CHARACTERS, af_sort_pos(), AF_LatinMetricsRec_::axis, AF_LatinAxisRec_::blue_count, AF_LatinAxisRec_::blues, FT_Outline_::contours, error, AF_LatinBlueRec_::flags, FT_Bool, FT_BOOL, FT_CURVE_TAG, FT_CURVE_TAG_ON, FT_Get_Char_Index(), FT_Load_Glyph(), FT_LOAD_NO_SCALE, FT_Pos, FT_TRACE5, FT_FaceRec_::glyph, if(), FT_Outline_::n_contours, FT_Outline_::n_points, FT_GlyphSlotRec_::outline, FT_Outline_::points, pp, AF_LatinBlueRec_::ref, AF_LatinBlueRec_::shoot, FT_Outline_::tags, and FT_Vector_::y.
Referenced by af_latin2_metrics_init().
af_latin2_metrics_init_widths | ( | AF_LatinMetrics | metrics, |
FT_Face | face, | ||
FT_ULong | charcode | ||
) |
Definition at line 58 of file aflatin2.c.
References AF_DIMENSION_HORZ, AF_DIMENSION_MAX, AF_DIMENSION_VERT, af_glyph_hints_done(), af_glyph_hints_init(), af_glyph_hints_reload(), af_glyph_hints_rescale(), af_latin2_hints_compute_segments(), af_latin2_hints_link_segments(), AF_LATIN_CONSTANT, AF_LATIN_MAX_WIDTHS, af_sort_widths(), AF_GlyphHintsRec_::axis, AF_LatinAxisRec_::edge_distance_threshold, error, AF_LatinAxisRec_::extra_light, AF_ScalerRec_::face, AF_ScalerRec_::flags, FT_Get_Char_Index(), FT_Load_Glyph(), FT_LOAD_NO_SCALE, FT_Pos, FT_RENDER_MODE_NORMAL, FT_ZERO, AF_SegmentRec_::link, AF_GlyphHintsRec_::memory, AF_AxisHintsRec_::num_segments, AF_SegmentRec_::pos, AF_ScalerRec_::render_mode, AF_LatinMetricsRec_::root, AF_ScriptMetricsRec_::scaler, AF_AxisHintsRec_::segments, AF_LatinAxisRec_::standard_width, AF_LatinMetricsRec_::units_per_em, AF_LatinAxisRec_::width_count, AF_LatinAxisRec_::widths, AF_ScalerRec_::x_delta, AF_ScalerRec_::x_scale, AF_ScalerRec_::y_delta, and AF_ScalerRec_::y_scale.
Referenced by af_latin2_metrics_init().
af_latin2_metrics_scale | ( | AF_LatinMetrics | metrics, |
AF_Scaler | scaler | ||
) |
Definition at line 656 of file aflatin2.c.
References AF_DIMENSION_HORZ, AF_DIMENSION_VERT, and af_latin2_metrics_scale_dim().
|
static |
Definition at line 506 of file aflatin2.c.
References AF_DIMENSION_HORZ, AF_DIMENSION_VERT, AF_LATIN_BLUE_ACTIVE, AF_LATIN_BLUE_ADJUSTMENT, AF_LatinMetricsRec_::axis, AF_LatinAxisRec_::blue_count, AF_LatinAxisRec_::blues, AF_LatinAxisRec_::delta, AF_LatinAxisRec_::extra_light, AF_LatinBlueRec_::flags, FT_Bool, FT_MulDiv(), FT_MulFix(), FT_PIX_ROUND, FT_Pos, FT_TRACE5, NULL, AF_LatinAxisRec_::org_delta, AF_LatinAxisRec_::org_scale, AF_LatinBlueRec_::ref, AF_LatinMetricsRec_::root, AF_LatinAxisRec_::scale, AF_ScriptMetricsRec_::scaler, AF_LatinBlueRec_::shoot, AF_LatinAxisRec_::standard_width, AF_LatinAxisRec_::width_count, AF_LatinAxisRec_::widths, AF_ScalerRec_::x_delta, AF_ScalerRec_::x_scale, AF_ScalerRec_::y_delta, and AF_ScalerRec_::y_scale.
Referenced by af_latin2_metrics_scale().
Definition at line 1547 of file aflatin2.c.
References FT_PIX_ROUND, and FT_Pos.
Referenced by af_latin2_compute_stem_width().
|
static |
Definition at line 171 of file aflatin2.c.
Referenced by af_latin2_metrics_init_blues().
|
static |
Definition at line 2351 of file aflatin2.c.