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

Go to the source code of this file.

Macros

#define AF_LATIN_MAX_TEST_CHARACTERS   12
 
#define FT_COMPONENT   trace_aflatin
 

Functions

static void af_latin_align_linked_edge (AF_GlyphHints hints, AF_Dimension dim, AF_Edge base_edge, AF_Edge stem_edge)
 
static void af_latin_align_serif_edge (AF_GlyphHints hints, AF_Edge base, AF_Edge serif)
 
static FT_Pos af_latin_compute_stem_width (AF_GlyphHints hints, AF_Dimension dim, FT_Pos width, AF_Edge_Flags base_flags, AF_Edge_Flags stem_flags)
 
 af_latin_hint_edges (AF_GlyphHints hints, AF_Dimension dim)
 
static FT_Error af_latin_hints_apply (AF_GlyphHints hints, FT_Outline *outline, AF_LatinMetrics metrics)
 
 af_latin_hints_compute_blue_edges (AF_GlyphHints hints, AF_LatinMetrics metrics)
 
 af_latin_hints_compute_edges (AF_GlyphHints hints, AF_Dimension dim)
 
 af_latin_hints_compute_segments (AF_GlyphHints hints, AF_Dimension dim)
 
 af_latin_hints_detect_features (AF_GlyphHints hints, AF_Dimension dim)
 
static FT_Error af_latin_hints_init (AF_GlyphHints hints, AF_LatinMetrics metrics)
 
 af_latin_hints_link_segments (AF_GlyphHints hints, AF_Dimension dim)
 
 af_latin_metrics_check_digits (AF_LatinMetrics metrics, FT_Face face)
 
 af_latin_metrics_init (AF_LatinMetrics metrics, FT_Face face)
 
static void af_latin_metrics_init_blues (AF_LatinMetrics metrics, FT_Face face)
 
 af_latin_metrics_init_widths (AF_LatinMetrics metrics, FT_Face face, FT_ULong charcode)
 
 af_latin_metrics_scale (AF_LatinMetrics metrics, AF_Scaler scaler)
 
static void af_latin_metrics_scale_dim (AF_LatinMetrics metrics, AF_Scaler scaler, AF_Dimension dim)
 
static FT_Pos af_latin_snap_width (AF_Width widths, FT_Int count, FT_Pos width)
 

Variables

static const char af_latin_blue_chars [AF_LATIN_MAX_BLUES][AF_LATIN_MAX_TEST_CHARACTERS+1]
 
static const AF_Script_UniRangeRec af_latin_uniranges []
 

Macro Definition Documentation

#define AF_LATIN_MAX_TEST_CHARACTERS   12

Definition at line 168 of file aflatin.c.

Referenced by af_latin_metrics_init_blues().

#define FT_COMPONENT   trace_aflatin

Definition at line 39 of file aflatin.c.

Function Documentation

static void af_latin_align_linked_edge ( AF_GlyphHints  hints,
AF_Dimension  dim,
AF_Edge  base_edge,
AF_Edge  stem_edge 
)
static
static void af_latin_align_serif_edge ( AF_GlyphHints  hints,
AF_Edge  base,
AF_Edge  serif 
)
static

Definition at line 1776 of file aflatin.c.

References FT_UNUSED, AF_EdgeRec_::opos, and AF_EdgeRec_::pos.

Referenced by af_latin_hint_edges().

af_latin_hints_detect_features ( AF_GlyphHints  hints,
AF_Dimension  dim 
)
af_latin_metrics_check_digits ( AF_LatinMetrics  metrics,
FT_Face  face 
)
af_latin_metrics_scale ( AF_LatinMetrics  metrics,
AF_Scaler  scaler 
)

Definition at line 703 of file aflatin.c.

References AF_DIMENSION_HORZ, AF_DIMENSION_VERT, and af_latin_metrics_scale_dim().

static FT_Pos af_latin_snap_width ( AF_Width  widths,
FT_Int  count,
FT_Pos  width 
)
static

Definition at line 1537 of file aflatin.c.

References FT_PIX_ROUND, and FT_Pos.

Referenced by af_latin_compute_stem_width().

Variable Documentation

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

Definition at line 172 of file aflatin.c.

Referenced by af_latin_metrics_init_blues().

const AF_Script_UniRangeRec af_latin_uniranges[]
static
Initial value:
=
{
AF_UNIRANGE_REC( 0x0020UL, 0x007FUL ),
AF_UNIRANGE_REC( 0x00A0UL, 0x00FFUL ),
AF_UNIRANGE_REC( 0x0100UL, 0x017FUL ),
AF_UNIRANGE_REC( 0x0180UL, 0x024FUL ),
AF_UNIRANGE_REC( 0x0250UL, 0x02AFUL ),
AF_UNIRANGE_REC( 0x02B0UL, 0x02FFUL ),
AF_UNIRANGE_REC( 0x0300UL, 0x036FUL ),
AF_UNIRANGE_REC( 0x0370UL, 0x03FFUL ),
AF_UNIRANGE_REC( 0x0400UL, 0x04FFUL ),
AF_UNIRANGE_REC( 0x0500UL, 0x052FUL ),
AF_UNIRANGE_REC( 0x1D00UL, 0x1D7FUL ),
AF_UNIRANGE_REC( 0x1D80UL, 0x1DBFUL ),
AF_UNIRANGE_REC( 0x1DC0UL, 0x1DFFUL ),
AF_UNIRANGE_REC( 0x1E00UL, 0x1EFFUL ),
AF_UNIRANGE_REC( 0x1F00UL, 0x1FFFUL ),
AF_UNIRANGE_REC( 0x2000UL, 0x206FUL ),
AF_UNIRANGE_REC( 0x2070UL, 0x209FUL ),
AF_UNIRANGE_REC( 0x20A0UL, 0x20CFUL ),
AF_UNIRANGE_REC( 0x2150UL, 0x218FUL ),
AF_UNIRANGE_REC( 0x2460UL, 0x24FFUL ),
AF_UNIRANGE_REC( 0x2C60UL, 0x2C7FUL ),
AF_UNIRANGE_REC( 0x2DE0UL, 0x2DFFUL ),
AF_UNIRANGE_REC( 0xA640UL, 0xA69FUL ),
AF_UNIRANGE_REC( 0xA720UL, 0xA7FFUL ),
AF_UNIRANGE_REC( 0xFB00UL, 0xFB06UL ),
AF_UNIRANGE_REC( 0x1D400UL, 0x1D7FFUL ),
}
#define AF_UNIRANGE_REC(a, b)
Definition: aftypes.h:290

Definition at line 2312 of file aflatin.c.