zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ttgload.c File Reference
#include <ft2build.h>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_CALC_H>
#include <FT_INTERNAL_STREAM_H>
#include <FT_INTERNAL_SFNT_H>
#include <FT_TRUETYPE_TAGS_H>
#include <FT_OUTLINE_H>
#include "ttgload.h"
#include "ttpload.h"
#include "tterrors.h"

Go to the source code of this file.

Macros

#define ARGS_ARE_WORDS   0x0001
 
#define ARGS_ARE_XY_VALUES   0x0002
 
#define FT_COMPONENT   trace_ttgload
 
#define IS_HINTED(flags)   ( ( flags & FT_LOAD_NO_HINTING ) == 0 )
 
#define MORE_COMPONENTS   0x0020
 
#define OVERLAP_COMPOUND   0x0400
 
#define ROUND_XY_TO_GRID   0x0004
 
#define SCALED_COMPONENT_OFFSET   0x0800
 
#define TT_LOADER_SET_PP(loader)
 
#define UNSCALED_COMPONENT_OFFSET   0x1000
 
#define USE_MY_METRICS   0x0200
 
#define WE_HAVE_A_2X2   0x0080
 
#define WE_HAVE_A_SCALE   0x0008
 
#define WE_HAVE_AN_XY_SCALE   0x0040
 
#define WE_HAVE_INSTR   0x0100
 

Functions

static FT_Error compute_glyph_metrics (TT_Loader loader, FT_UInt glyph_index)
 
static FT_Error load_truetype_glyph (TT_Loader loader, FT_UInt glyph_index, FT_UInt recurse_count, FT_Bool header_only)
 
static void translate_array (FT_UInt n, FT_Vector *coords, FT_Pos delta_x, FT_Pos delta_y)
 
 TT_Access_Glyph_Frame (TT_Loader loader, FT_UInt glyph_index, FT_ULong offset, FT_UInt byte_count)
 
 TT_Forget_Glyph_Frame (TT_Loader loader)
 
 TT_Get_HMetrics (TT_Face face, FT_UInt idx, FT_Short *lsb, FT_UShort *aw)
 
static void tt_get_metrics (TT_Loader loader, FT_UInt glyph_index)
 
 TT_Get_VMetrics (TT_Face face, FT_UInt idx, FT_Short *tsb, FT_UShort *ah)
 
static FT_Error TT_Hint_Glyph (TT_Loader loader, FT_Bool is_composite)
 
 TT_Init_Glyph_Loading (TT_Face face)
 
 TT_Load_Composite_Glyph (TT_Loader loader)
 
 TT_Load_Glyph (TT_Size size, TT_GlyphSlot glyph, FT_UInt glyph_index, FT_Int32 load_flags)
 
 TT_Load_Glyph_Header (TT_Loader loader)
 
 TT_Load_Simple_Glyph (TT_Loader load)
 
static FT_Error tt_loader_init (TT_Loader loader, TT_Size size, TT_GlyphSlot glyph, FT_Int32 load_flags, FT_Bool glyf_table_only)
 
static void tt_prepare_zone (TT_GlyphZone zone, FT_GlyphLoad load, FT_UInt start_point, FT_UInt start_contour)
 
static FT_Error TT_Process_Composite_Component (TT_Loader loader, FT_SubGlyph subglyph, FT_UInt start_point, FT_UInt num_base_points)
 
static FT_Error TT_Process_Composite_Glyph (TT_Loader loader, FT_UInt start_point, FT_UInt start_contour)
 
static FT_Error TT_Process_Simple_Glyph (TT_Loader loader)
 

Macro Definition Documentation

#define ARGS_ARE_WORDS   0x0001

Definition at line 51 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph().

#define ARGS_ARE_XY_VALUES   0x0002

Definition at line 52 of file ttgload.c.

Referenced by load_truetype_glyph(), and TT_Process_Composite_Component().

#define FT_COMPONENT   trace_ttgload

Definition at line 44 of file ttgload.c.

#define IS_HINTED (   flags)    ( ( flags & FT_LOAD_NO_HINTING ) == 0 )
#define MORE_COMPONENTS   0x0020

Definition at line 56 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph().

#define OVERLAP_COMPOUND   0x0400

Definition at line 61 of file ttgload.c.

#define ROUND_XY_TO_GRID   0x0004

Definition at line 53 of file ttgload.c.

Referenced by TT_Process_Composite_Component().

#define SCALED_COMPONENT_OFFSET   0x0800

Definition at line 62 of file ttgload.c.

Referenced by TT_Process_Composite_Component().

#define TT_LOADER_SET_PP (   loader)
Value:
do { \
(loader)->pp1.x = (loader)->bbox.xMin - (loader)->left_bearing; \
(loader)->pp1.y = 0; \
(loader)->pp2.x = (loader)->pp1.x + (loader)->advance; \
(loader)->pp2.y = 0; \
(loader)->pp3.x = 0; \
(loader)->pp3.y = (loader)->top_bearing + (loader)->bbox.yMax; \
(loader)->pp4.x = 0; \
(loader)->pp4.y = (loader)->pp3.y - (loader)->vadvance; \
} while ( 0 )
FT_BBox bbox
Definition: ftbbox.c:578
FT_Pos yMax
Definition: ftimage.h:119

Definition at line 1188 of file ttgload.c.

Referenced by load_truetype_glyph().

#define UNSCALED_COMPONENT_OFFSET   0x1000

Definition at line 63 of file ttgload.c.

Referenced by TT_Process_Composite_Component().

#define USE_MY_METRICS   0x0200

Definition at line 60 of file ttgload.c.

Referenced by load_truetype_glyph().

#define WE_HAVE_A_2X2   0x0080

Definition at line 58 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph(), and TT_Process_Composite_Component().

#define WE_HAVE_A_SCALE   0x0008

Definition at line 54 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph(), and TT_Process_Composite_Component().

#define WE_HAVE_AN_XY_SCALE   0x0040

Definition at line 57 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph(), and TT_Process_Composite_Component().

#define WE_HAVE_INSTR   0x0100

Definition at line 59 of file ttgload.c.

Referenced by load_truetype_glyph().

Function Documentation

static FT_Error load_truetype_glyph ( TT_Loader  loader,
FT_UInt  glyph_index,
FT_UInt  recurse_count,
FT_Bool  header_only 
)
static
static void translate_array ( FT_UInt  n,
FT_Vector coords,
FT_Pos  delta_x,
FT_Pos  delta_y 
)
static

Definition at line 237 of file ttgload.c.

References k.

Referenced by TT_Hint_Glyph(), and TT_Process_Composite_Component().

TT_Access_Glyph_Frame ( TT_Loader  loader,
FT_UInt  glyph_index,
FT_ULong  offset,
FT_UInt  byte_count 
)
TT_Forget_Glyph_Frame ( TT_Loader  loader)

Definition at line 294 of file ttgload.c.

References FT_FRAME_EXIT.

Referenced by TT_Init_Glyph_Loading().

TT_Get_HMetrics ( TT_Face  face,
FT_UInt  idx,
FT_Short lsb,
FT_UShort aw 
)

Definition at line 71 of file ttgload.c.

References FT_TRACE5.

Referenced by tt_get_advances(), and tt_get_metrics().

TT_Get_VMetrics ( TT_Face  face,
FT_UInt  idx,
FT_Short tsb,
FT_UShort ah 
)

Definition at line 94 of file ttgload.c.

References FT_TRACE5.

Referenced by tt_get_advances(), and tt_get_metrics().

TT_Init_Glyph_Loading ( TT_Face  face)
TT_Load_Glyph_Header ( TT_Loader  loader)

Definition at line 304 of file ttgload.c.

References FT_NEXT_SHORT, and FT_TRACE5.

Referenced by TT_Init_Glyph_Loading().