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

Go to the source code of this file.

Macros

#define AF_LATIN_MAX_TEST_CHARACTERS   12
 
#define FT_COMPONENT   trace_aflatin2
 
#define SORT_SEGMENTS
 

Functions

static void af_latin2_align_linked_edge (AF_GlyphHints hints, AF_Dimension dim, AF_Edge base_edge, AF_Edge stem_edge)
 
static void af_latin2_align_serif_edge (AF_GlyphHints hints, AF_Edge base, AF_Edge serif)
 
static FT_Pos af_latin2_compute_stem_width (AF_GlyphHints hints, AF_Dimension dim, FT_Pos width, AF_Edge_Flags base_flags, AF_Edge_Flags stem_flags)
 
 af_latin2_hint_edges (AF_GlyphHints hints, AF_Dimension dim)
 
static FT_Error af_latin2_hints_apply (AF_GlyphHints hints, FT_Outline *outline, AF_LatinMetrics metrics)
 
 af_latin2_hints_compute_blue_edges (AF_GlyphHints hints, AF_LatinMetrics metrics)
 
 af_latin2_hints_compute_edges (AF_GlyphHints hints, AF_Dimension dim)
 
 af_latin2_hints_compute_segments (AF_GlyphHints hints, AF_Dimension dim)
 
 af_latin2_hints_detect_features (AF_GlyphHints hints, AF_Dimension dim)
 
static FT_Error af_latin2_hints_init (AF_GlyphHints hints, AF_LatinMetrics metrics)
 
 af_latin2_hints_link_segments (AF_GlyphHints hints, AF_Dimension dim)
 
 af_latin2_metrics_check_digits (AF_LatinMetrics metrics, FT_Face face)
 
 af_latin2_metrics_init (AF_LatinMetrics metrics, FT_Face face)
 
static void af_latin2_metrics_init_blues (AF_LatinMetrics metrics, FT_Face face)
 
 af_latin2_metrics_init_widths (AF_LatinMetrics metrics, FT_Face face, FT_ULong charcode)
 
 af_latin2_metrics_scale (AF_LatinMetrics metrics, AF_Scaler scaler)
 
static void af_latin2_metrics_scale_dim (AF_LatinMetrics metrics, AF_Scaler scaler, AF_Dimension dim)
 
static FT_Pos af_latin2_snap_width (AF_Width widths, FT_Int count, FT_Pos width)
 

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 []
 

Macro Definition Documentation

#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.

Function Documentation

static void af_latin2_align_linked_edge ( AF_GlyphHints  hints,
AF_Dimension  dim,
AF_Edge  base_edge,
AF_Edge  stem_edge 
)
static
static void af_latin2_align_serif_edge ( AF_GlyphHints  hints,
AF_Edge  base,
AF_Edge  serif 
)
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().

af_latin2_hints_detect_features ( AF_GlyphHints  hints,
AF_Dimension  dim 
)
af_latin2_metrics_check_digits ( AF_LatinMetrics  metrics,
FT_Face  face 
)
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 FT_Pos af_latin2_snap_width ( AF_Width  widths,
FT_Int  count,
FT_Pos  width 
)
static

Definition at line 1547 of file aflatin2.c.

References FT_PIX_ROUND, and FT_Pos.

Referenced by af_latin2_compute_stem_width().

Variable Documentation

const char af_latin2_blue_chars[AF_LATIN_MAX_BLUES][AF_LATIN_MAX_TEST_CHARACTERS+1]
static
Initial value:
=
{
"THEZOCQS",
"HEZLOCUS",
"fijkdbh",
"xzroesc",
"xzroesc",
"pqgjy"
}

Definition at line 171 of file aflatin2.c.

Referenced by af_latin2_metrics_init_blues().

const AF_Script_UniRangeRec af_latin2_uniranges[]
static
Initial value:
=
{
AF_UNIRANGE_REC( 32UL, 127UL ),
AF_UNIRANGE_REC( 160UL, 255UL ),
}
#define AF_UNIRANGE_REC(a, b)
Definition: aftypes.h:290

Definition at line 2351 of file aflatin2.c.