zenilib
0.5.3.0
|
#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 |
#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 IS_HINTED | ( | flags | ) | ( ( flags & FT_LOAD_NO_HINTING ) == 0 ) |
Definition at line 256 of file ttgload.c.
Referenced by compute_glyph_metrics(), load_truetype_glyph(), TT_Load_Glyph(), TT_Load_Simple_Glyph(), tt_loader_init(), and TT_Process_Simple_Glyph().
#define MORE_COMPONENTS 0x0020 |
Definition at line 56 of file ttgload.c.
Referenced by TT_Load_Composite_Glyph().
#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 | ) |
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().
Definition at line 1618 of file ttgload.c.
References FT_Incremental_MetricsRec_::advance, TT_HoriHeader_::Ascender, bbox, TT_LoaderRec_::bbox, FT_Incremental_MetricsRec_::bearing_x, FT_Incremental_MetricsRec_::bearing_y, TT_HoriHeader_::Descender, error, TT_LoaderRec_::face, FT_DivFix(), FT_LOAD_NO_SCALE, FT_MulFix(), FT_Outline_Get_CBox(), FT_Pos, FT_Incremental_InterfaceRec_::funcs, FT_Incremental_FuncsRec_::get_glyph_metrics, TT_LoaderRec_::glyph, TT_FaceRec_::horizontal, if(), FT_FaceRec_::internal, IS_HINTED, TT_Postscript_::isFixedPitch, TT_LoaderRec_::linear, TT_LoaderRec_::load_flags, FT_SizeRec_::metrics, TT_VertHeader_::number_Of_VMetrics, FT_Incremental_InterfaceRec_::object, TT_FaceRec_::os2, TT_FaceRec_::postscript, TT_LoaderRec_::pp1, TT_LoaderRec_::pp2, TT_LoaderRec_::pp3, TT_LoaderRec_::pp4, TT_FaceRec_::root, TT_LoaderRec_::size, TT_OS2_::sTypoAscender, TT_OS2_::sTypoDescender, TRUE, tt_face_get_device_metrics(), TT_OS2_::version, TT_FaceRec_::vertical, TT_FaceRec_::vertical_info, FT_Vector_::x, FT_BBox_::xMax, FT_BBox_::xMin, FT_Vector_::y, FT_Size_Metrics_::y_scale, FT_BBox_::yMax, and FT_BBox_::yMin.
Referenced by TT_Load_Glyph().
|
static |
Definition at line 1211 of file ttgload.c.
References TT_FaceRec_::access_glyph_frame, FT_SubGlyphRec_::arg1, FT_SubGlyphRec_::arg2, ARGS_ARE_XY_VALUES, TT_LoaderRec_::bbox, TT_LoaderRec_::byte_len, error, TT_LoaderRec_::face, FALSE, FT_SubGlyphRec_::flags, TT_FaceRec_::forget_glyph_frame, FT_GlyphSlotRec_::format, FT_Bool, FT_CONFIG_OPTION_INCREMENTAL, FT_FREE, FT_GlyphLoader_Add(), FT_LOAD_NO_RECURSE, FT_LOAD_NO_SCALE, FT_MEM_ZERO, FT_MulFix(), FT_Stream_OpenMemory(), FT_TRACE2, TT_LoaderRec_::gloader, TT_LoaderRec_::glyf_offset, TT_LoaderRec_::glyph, TT_LoaderRec_::glyph_index, i, if(), FT_SubGlyphRec_::index, TT_LoaderRec_::ins_pos, FT_FaceRec_::internal, IS_HINTED, TT_LoaderRec_::load_flags, TT_FaceRec_::max_profile, TT_MaxProfile_::maxComponentDepth, FT_FaceRec_::memory, TT_LoaderRec_::n_contours, NULL, FT_FaceRec_::num_glyphs, pp, TT_LoaderRec_::pp1, TT_LoaderRec_::pp2, TT_LoaderRec_::pp3, TT_LoaderRec_::pp4, TT_FaceRec_::read_composite_glyph, TT_FaceRec_::read_glyph_header, TT_FaceRec_::read_simple_glyph, TT_FaceRec_::root, TT_LoaderRec_::size, TT_LoaderRec_::stream, TT_CONFIG_OPTION_GX_VAR_SUPPORT, tt_face_get_location(), tt_get_metrics(), TT_LOADER_SET_PP, TT_Process_Composite_Component(), TT_Process_Composite_Glyph(), TT_Process_Simple_Glyph(), TT_USE_BYTECODE_INTERPRETER, TT_Vary_Get_Glyph_Deltas(), USE_MY_METRICS, WE_HAVE_INSTR, FT_Vector_::x, FT_BBox_::xMax, FT_BBox_::xMin, FT_Vector_::y, FT_BBox_::yMax, and FT_BBox_::yMin.
Referenced by TT_Load_Glyph().
|
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 | ||
) |
Definition at line 268 of file ttgload.c.
References FT_StreamRec_::cursor, error, FT_FRAME_ENTER, FT_STREAM_SEEK, FT_TRACE4, FT_UNUSED, and FT_StreamRec_::limit.
Referenced by TT_Init_Glyph_Loading().
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().
Definition at line 71 of file ttgload.c.
References FT_TRACE5.
Referenced by tt_get_advances(), and tt_get_metrics().
Definition at line 131 of file ttgload.c.
References TT_LoaderRec_::advance, TT_LoaderRec_::face, TT_LoaderRec_::left_bearing, TT_LoaderRec_::linear, TT_LoaderRec_::linear_def, TT_LoaderRec_::top_bearing, TT_Get_HMetrics(), TT_Get_VMetrics(), and TT_LoaderRec_::vadvance.
Referenced by load_truetype_glyph().
Definition at line 94 of file ttgload.c.
References FT_TRACE5.
Referenced by tt_get_advances(), and tt_get_metrics().
Definition at line 714 of file ttgload.c.
References FT_GlyphSlotRec_::control_len, TT_GlyphZoneRec_::cur, error, TT_LoaderRec_::exec, FT_ARRAY_COPY, FT_Bool, FT_BOOL, FT_CURVE_TAG_HAS_SCANMODE, FT_LOAD_NO_SCALE, FT_PIX_ROUND, FT_Pos, FT_TRACE1, FT_UNUSED, TT_LoaderRec_::gloader, TT_LoaderRec_::glyph, TT_ExecContextRec_::glyphIns, TT_ExecContextRec_::GS, TT_ExecContextRec_::is_composite, TT_LoaderRec_::load_flags, TT_ExecContextRec_::metrics, TT_GlyphZoneRec_::n_points, TT_GlyphZoneRec_::org, TT_GlyphZoneRec_::orus, TT_ExecContextRec_::pedantic_hinting, TT_LoaderRec_::pp1, TT_LoaderRec_::pp2, TT_LoaderRec_::pp3, TT_LoaderRec_::pp4, TT_LoaderRec_::preserve_pps, TT_ExecContextRec_::pts, TT_GraphicsState_::scan_type, TT_LoaderRec_::size, FT_Outline_::tags, translate_array(), tt_coderange_glyph, TT_Run_Context(), TT_Set_CodeRange(), FT_Vector_::x, FT_Size_Metrics_::x_scale, FT_Vector_::y, FT_Size_Metrics_::y_scale, and TT_LoaderRec_::zone.
Referenced by TT_Process_Composite_Glyph(), and TT_Process_Simple_Glyph().
TT_Init_Glyph_Loading | ( | TT_Face | face | ) |
Definition at line 676 of file ttgload.c.
References TT_Access_Glyph_Frame(), TT_Forget_Glyph_Frame(), TT_Load_Composite_Glyph(), TT_Load_Glyph_Header(), and TT_Load_Simple_Glyph().
Referenced by tt_face_init().
TT_Load_Composite_Glyph | ( | TT_Loader | loader | ) |
Definition at line 555 of file ttgload.c.
References FT_SubGlyphRec_::arg1, FT_SubGlyphRec_::arg2, ARGS_ARE_WORDS, FT_StreamRec_::cursor, error, FT_SubGlyphRec_::flags, FT_GlyphLoader_CheckSubGlyphs(), FT_NEXT_CHAR, FT_NEXT_SHORT, FT_NEXT_USHORT, FT_STREAM_POS, FT_SubGlyphRec_::index, MORE_COMPONENTS, FT_SubGlyphRec_::transform, WE_HAVE_A_2X2, WE_HAVE_A_SCALE, WE_HAVE_AN_XY_SCALE, FT_Matrix_::xx, FT_Matrix_::xy, FT_Matrix_::yx, and FT_Matrix_::yy.
Referenced by TT_Init_Glyph_Loading().
TT_Load_Glyph | ( | TT_Size | size, |
TT_GlyphSlot | glyph, | ||
FT_UInt | glyph_index, | ||
FT_Int32 | load_flags | ||
) |
Definition at line 1981 of file ttgload.c.
References TT_LoaderRec_::bbox, compute_glyph_metrics(), error, TT_LoaderRec_::exec, FALSE, FT_GLYPH_FORMAT_OUTLINE, FT_IS_SCALABLE, FT_LOAD_NO_BITMAP, FT_LOAD_NO_SCALE, FT_LOAD_SBITS_ONLY, FT_OUTLINE_HIGH_PRECISION, FT_OUTLINE_IGNORE_DROPOUTS, FT_OUTLINE_INCLUDE_STUBS, FT_OUTLINE_SINGLE_PASS, FT_OUTLINE_SMART_DROPOUTS, FT_Outline_Translate(), TT_LoaderRec_::gloader, TT_ExecContextRec_::GS, if(), IS_HINTED, TT_LoaderRec_::linear, load_truetype_glyph(), TT_LoaderRec_::pp1, TT_FaceRec_::root, TT_GraphicsState_::scan_control, TT_GraphicsState_::scan_type, TT_LoaderRec_::top_bearing, TRUE, TT_CONFIG_OPTION_EMBEDDED_BITMAPS, tt_loader_init(), TT_LoaderRec_::vadvance, FT_Vector_::x, and FT_BBox_::yMax.
Referenced by tt_glyph_load().
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().
TT_Load_Simple_Glyph | ( | TT_Loader | load | ) |
Definition at line 332 of file ttgload.c.
References error, for(), FT_ASSERT, FT_CURVE_TAG_ON, FT_GLYPHLOADER_CHECK_POINTS, FT_MEM_COPY, FT_NEXT_BYTE, FT_NEXT_SHORT, FT_NEXT_USHORT, FT_Pos, FT_TRACE0, FT_TRACE5, if(), IS_HINTED, TT_FaceRec_::max_profile, TT_MaxProfile_::maxSizeOfInstructions, FT_Outline_::n_contours, FT_Outline_::n_points, NULL, FT_Outline_::points, FT_Outline_::tags, and vec.
Referenced by TT_Init_Glyph_Loading().
|
static |
Definition at line 1828 of file ttgload.c.
References context, TT_FaceRec_::cvt, error, TT_LoaderRec_::exec, TT_LoaderRec_::face, FT_GlyphSlotRec_::face, FT_Bool, FT_BOOL, FT_ERROR, FT_FACE_DRIVER, FT_GlyphLoader_Rewind(), FT_LOAD_NO_HINTING, FT_LOAD_PEDANTIC, FT_LOAD_TARGET_MODE, FT_MEM_ZERO, FT_MulFix(), FT_RENDER_MODE_MONO, FT_STREAM_POS, FT_TRACE4, TT_LoaderRec_::gloader, TT_LoaderRec_::glyf_offset, TT_LoaderRec_::glyph, TT_ExecContextRec_::glyphIns, TT_FaceRec_::goto_table, TT_ExecContextRec_::grayscale, TT_ExecContextRec_::GS, i, TT_GraphicsState_::instruct_control, TT_LoaderRec_::instructions, FT_FaceRec_::internal, FT_GlyphSlotRec_::internal, IS_HINTED, TT_LoaderRec_::load_flags, FT_Slot_InternalRec_::loader, TT_ExecContextRec_::pedantic_hinting, TT_FaceRec_::root, TT_Size_Metrics_::scale, TT_LoaderRec_::size, FT_FaceRec_::stream, TT_LoaderRec_::stream, tt_default_graphics_state, TT_Load_Context(), TTAG_glyf, and TT_SizeRec_::ttmetrics.
Referenced by TT_Load_Glyph().
|
static |
Definition at line 687 of file ttgload.c.
References FT_Outline_::contours, TT_GlyphZoneRec_::contours, TT_GlyphZoneRec_::cur, FT_GlyphLoadRec_::extra_points, FT_GlyphLoadRec_::extra_points2, TT_GlyphZoneRec_::first_point, FT_Outline_::n_contours, TT_GlyphZoneRec_::n_contours, FT_Outline_::n_points, TT_GlyphZoneRec_::n_points, TT_GlyphZoneRec_::org, TT_GlyphZoneRec_::orus, FT_GlyphLoadRec_::outline, FT_Outline_::points, FT_Outline_::tags, and TT_GlyphZoneRec_::tags.
Referenced by TT_Process_Composite_Glyph(), and TT_Process_Simple_Glyph().
|
static |
Definition at line 934 of file ttgload.c.
References FT_SubGlyphRec_::arg1, FT_SubGlyphRec_::arg2, ARGS_ARE_XY_VALUES, d, FT_SubGlyphRec_::flags, FT_Bool, FT_BOOL, FT_LOAD_NO_SCALE, FT_MulFix(), FT_PIX_ROUND, FT_Pos, FT_SqrtFixed(), FT_Vector_Transform(), TT_LoaderRec_::gloader, i, k, TT_LoaderRec_::load_flags, ROUND_XY_TO_GRID, SCALED_COMPONENT_OFFSET, TT_LoaderRec_::size, FT_SubGlyphRec_::transform, translate_array(), UNSCALED_COMPONENT_OFFSET, WE_HAVE_A_2X2, WE_HAVE_A_SCALE, WE_HAVE_AN_XY_SCALE, FT_Vector_::x, FT_Matrix_::xx, FT_Matrix_::xy, FT_Vector_::y, FT_Matrix_::yx, and FT_Matrix_::yy.
Referenced by load_truetype_glyph().
|
static |
Definition at line 1092 of file ttgload.c.
References TT_LoaderRec_::byte_len, FT_GlyphSlotRec_::control_data, FT_GlyphSlotRec_::control_len, error, TT_LoaderRec_::exec, TT_LoaderRec_::face, FT_CURVE_TAG_TOUCH_BOTH, FT_GLYPHLOADER_CHECK_POINTS, FT_READ_USHORT, FT_STREAM_READ, FT_STREAM_SEEK, FT_TRACE1, FT_TRACE5, TT_LoaderRec_::gloader, TT_LoaderRec_::glyph, TT_ExecContextRec_::glyphIns, TT_ExecContextRec_::glyphSize, i, TT_LoaderRec_::ins_pos, TT_ExecContextRec_::memory, FT_Outline_::n_points, TT_GlyphZoneRec_::n_points, FT_Outline_::points, TT_LoaderRec_::pp1, TT_LoaderRec_::pp2, TT_LoaderRec_::pp3, TT_LoaderRec_::pp4, sizeof(), TT_LoaderRec_::stream, FT_Outline_::tags, TT_GlyphZoneRec_::tags, TT_Hint_Glyph(), tt_prepare_zone(), Update_Max(), and TT_LoaderRec_::zone.
Referenced by load_truetype_glyph().
Definition at line 831 of file ttgload.c.
References TT_GlyphZoneRec_::cur, error, TT_LoaderRec_::face, FT_ARRAY_COPY, FT_FREE, FT_LOAD_NO_SCALE, FT_MulFix(), TT_LoaderRec_::gloader, TT_LoaderRec_::glyph_index, i, IS_HINTED, TT_LoaderRec_::load_flags, FT_FaceRec_::memory, FT_Outline_::n_points, TT_GlyphZoneRec_::n_points, TT_GlyphZoneRec_::orus, FT_Outline_::points, TT_LoaderRec_::pp1, TT_LoaderRec_::pp2, TT_LoaderRec_::pp3, TT_LoaderRec_::pp4, TT_LoaderRec_::size, FT_Outline_::tags, TT_Hint_Glyph(), tt_prepare_zone(), TT_Vary_Get_Glyph_Deltas(), vec, FT_Vector_::x, FT_Vector_::y, and TT_LoaderRec_::zone.
Referenced by load_truetype_glyph().