afloader.c File Reference

#include "afloader.h"
#include "afhints.h"
#include "afglobal.h"
#include "aferrors.h"

Go to the source code of this file.

Functions

 af_loader_init (AF_Loader loader, FT_Memory memory)
 af_loader_reset (AF_Loader loader, FT_Face face)
 af_loader_done (AF_Loader loader)
static FT_Error af_loader_load_g (AF_Loader loader, AF_Scaler scaler, FT_UInt glyph_index, FT_Int32 load_flags, FT_UInt depth)
 af_loader_load_glyph (AF_Loader loader, FT_Face face, FT_UInt gindex, FT_UInt32 load_flags)


Function Documentation

af_loader_done ( AF_Loader  loader  ) 

Definition at line 68 of file afloader.c.

References af_glyph_hints_done(), FT_GlyphLoader_Done(), and NULL.

Referenced by af_autofitter_done().

af_loader_init ( AF_Loader  loader,
FT_Memory  memory 
)

Definition at line 26 of file afloader.c.

References af_glyph_hints_init(), FT_GlyphLoader_New(), and FT_ZERO.

Referenced by af_autofitter_init().

static FT_Error af_loader_load_g ( AF_Loader  loader,
AF_Scaler  scaler,
FT_UInt  glyph_index,
FT_Int32  load_flags,
FT_UInt  depth 
) [static]

Definition at line 84 of file afloader.c.

References AF_DIMENSION_HORZ, AF_HINTS_DO_ADVANCE, FT_SubGlyphRec_::arg1, FT_SubGlyphRec_::arg2, axis, AF_GlyphHintsRec_::axis, FT_Outline_::contours, dummy, error, FT_SubGlyphRec_::flags, FT_GlyphSlotRec_::format, FT_ARRAY_COPY, FT_GLYPH_FORMAT_COMPOSITE, FT_GLYPH_FORMAT_OUTLINE, FT_GlyphLoader_Add(), FT_GLYPHLOADER_CHECK_POINTS, FT_GlyphLoader_CheckSubGlyphs(), FT_Load_Glyph(), FT_Matrix_Invert(), FT_MulFix(), FT_Outline_Translate(), FT_PIX_ROUND, FT_Pos, FT_RENDER_MODE_LIGHT, FT_SUBGLYPH_FLAG_2X2, FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES, FT_SUBGLYPH_FLAG_SCALE, FT_SUBGLYPH_FLAG_USE_MY_METRICS, FT_SUBGLYPH_FLAG_XY_SCALE, FT_Vector_Transform(), FT_Slot_InternalRec_::glyph_delta, FT_Slot_InternalRec_::glyph_matrix, FT_Slot_InternalRec_::glyph_transformed, if(), FT_SubGlyphRec_::index, FT_GlyphSlotRec_::internal, k, l, FT_GlyphSlotRec_::linearHoriAdvance, FT_GlyphSlotRec_::linearVertAdvance, FT_GlyphSlotRec_::lsb_delta, metrics(), FT_GlyphSlotRec_::metrics, FT_Outline_::n_contours, FT_Outline_::n_points, FT_GlyphSlotRec_::num_subglyphs, AF_EdgeRec_::opos, FT_GlyphSlotRec_::outline, p1(), p2(), FT_Outline_::points, AF_EdgeRec_::pos, AF_ScalerRec_::render_mode, FT_GlyphSlotRec_::rsb_delta, short, start_point, FT_GlyphSlotRec_::subglyphs, FT_Outline_::tags, FT_SubGlyphRec_::transform, x, AF_GlyphHintsRec_::x_delta, AF_GlyphHintsRec_::x_scale, AF_GlyphHintsRec_::xmax_delta, AF_GlyphHintsRec_::xmin_delta, y, AF_GlyphHintsRec_::y_delta, and AF_GlyphHintsRec_::y_scale.

Referenced by af_loader_load_glyph().

af_loader_load_glyph ( AF_Loader  loader,
FT_Face  face,
FT_UInt  gindex,
FT_UInt32  load_flags 
)

Definition at line 472 of file afloader.c.

References af_face_globals_get_metrics(), af_loader_load_g(), af_loader_reset(), error, AF_ScalerRec_::face, AF_ScalerRec_::flags, FT_LOAD_IGNORE_TRANSFORM, FT_LOAD_NO_SCALE, FT_LOAD_RENDER, FT_LOAD_TARGET_MODE, FT_ZERO, metrics(), AF_ScalerRec_::render_mode, size, AF_ScalerRec_::x_delta, AF_ScalerRec_::x_scale, AF_ScalerRec_::y_delta, and AF_ScalerRec_::y_scale.

Referenced by af_autofitter_load_glyph().

af_loader_reset ( AF_Loader  loader,
FT_Face  face 
)

Definition at line 40 of file afloader.c.

References af_face_globals_free(), af_face_globals_new(), error, FT_GlyphLoader_Rewind(), and NULL.

Referenced by af_loader_load_glyph().


Generated on Tue Jul 5 15:58:21 2011 for ROOT_528-00b_version by  doxygen 1.5.1