zenilib
0.5.3.0
|
#include <ft2build.h>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_STREAM_H>
#include <FT_TRUETYPE_TAGS_H>
#include <FT_INTERNAL_SFNT_H>
#include "ttgload.h"
#include "ttpload.h"
#include "tterrors.h"
Go to the source code of this file.
Macros | |
#define | FT_COMPONENT trace_ttobjs |
#define | TRICK_NAMES_COUNT 8 |
#define | TRICK_NAMES_MAX_CHARACTERS 16 |
#define | TRICK_SFNT_ID_cvt 0 |
#define | TRICK_SFNT_ID_fpgm 1 |
#define | TRICK_SFNT_ID_prep 2 |
#define | TRICK_SFNT_IDS_NUM_FACES 13 |
#define | TRICK_SFNT_IDS_PER_FACE 3 |
Typedefs | |
typedef struct tt_sfnt_id_rec_ | tt_sfnt_id_rec |
Functions | |
static FT_Bool | tt_check_single_notdef (FT_Face ttface) |
static FT_Bool | tt_check_trickyness (FT_Face face) |
static FT_Bool | tt_check_trickyness_family (FT_String *name) |
static FT_Bool | tt_check_trickyness_sfnt_ids (TT_Face face) |
tt_driver_done (FT_Module ttdriver) | |
tt_driver_init (FT_Module ttdriver) | |
tt_face_done (FT_Face ttface) | |
tt_face_init (FT_Stream stream, FT_Face ttface, FT_Int face_index, FT_Int num_params, FT_Parameter *params) | |
static FT_ULong | tt_get_sfnt_checksum (TT_Face face, FT_UShort i) |
tt_size_done (FT_Size ttsize) | |
tt_size_init (FT_Size ttsize) | |
tt_size_reset (TT_Size size) | |
tt_slot_init (FT_GlyphSlot slot) | |
static FT_UInt32 | tt_synth_sfnt_checksum (FT_Stream stream, FT_ULong length) |
#define TRICK_NAMES_COUNT 8 |
Referenced by tt_check_trickyness_family().
#define TRICK_NAMES_MAX_CHARACTERS 16 |
Referenced by tt_check_trickyness_family().
#define TRICK_SFNT_ID_cvt 0 |
Referenced by tt_check_trickyness_sfnt_ids().
#define TRICK_SFNT_ID_fpgm 1 |
Referenced by tt_check_trickyness_sfnt_ids().
#define TRICK_SFNT_ID_prep 2 |
Referenced by tt_check_trickyness_sfnt_ids().
#define TRICK_SFNT_IDS_NUM_FACES 13 |
Referenced by tt_check_trickyness_sfnt_ids().
#define TRICK_SFNT_IDS_PER_FACE 3 |
Referenced by tt_check_trickyness_sfnt_ids().
typedef struct tt_sfnt_id_rec_ tt_sfnt_id_rec |
Definition at line 414 of file ttobjs.c.
References error, FALSE, FT_Bool, FT_Get_Glyph_Name(), ft_strncmp, i, TT_FaceRec_::num_locations, TRUE, and tt_face_get_location().
Referenced by tt_face_init().
Definition at line 392 of file ttobjs.c.
References FALSE, FT_FaceRec_::family_name, TRUE, tt_check_trickyness_family(), and tt_check_trickyness_sfnt_ids().
Referenced by tt_face_init().
Definition at line 149 of file ttobjs.c.
References FALSE, ft_strstr, TRICK_NAMES_COUNT, TRICK_NAMES_MAX_CHARACTERS, and TRUE.
Referenced by tt_check_trickyness().
Definition at line 244 of file ttobjs.c.
References TT_FaceRec_::dir_tables, FALSE, FT_Bool, FT_MEM_SET, i, j, k, TT_TableRec_::Length, TT_FaceRec_::num_tables, TT_TableRec_::Tag, TRICK_SFNT_ID_cvt, TRICK_SFNT_ID_fpgm, TRICK_SFNT_ID_prep, TRICK_SFNT_IDS_NUM_FACES, TRICK_SFNT_IDS_PER_FACE, TRUE, tt_get_sfnt_checksum(), TTAG_cvt, TTAG_fpgm, and TTAG_prep.
Referenced by tt_check_trickyness().
tt_driver_done | ( | FT_Module | ttdriver | ) |
Definition at line 1246 of file ttobjs.c.
References FT_UNUSED, NULL, and TT_Done_Context().
tt_driver_init | ( | FT_Module | ttdriver | ) |
Definition at line 1213 of file ttobjs.c.
References FT_UNUSED, and TT_New_Context().
tt_face_done | ( | FT_Face | ttface | ) |
Definition at line 651 of file ttobjs.c.
References TT_FaceRec_::cvt, TT_FaceRec_::cvt_program, TT_FaceRec_::cvt_program_size, TT_FaceRec_::cvt_size, FT_Generic_::data, SFNT_Interface_::done_face, TT_FaceRec_::extra, FT_Generic_::finalizer, TT_FaceRec_::font_program, TT_FaceRec_::font_program_size, FT_FRAME_RELEASE, FT_FREE, if(), NULL, TT_FaceRec_::sfnt, tt_done_blend(), tt_face_done_loca(), and tt_face_free_hdmx().
tt_face_init | ( | FT_Stream | stream, |
FT_Face | ttface, | ||
FT_Int | face_index, | ||
FT_Int | num_params, | ||
FT_Parameter * | params | ||
) |
Definition at line 484 of file ttobjs.c.
References FT_LibraryRec_::debug_hooks, error, TT_FaceRec_::format_tag, FT_Bool, FT_BOOL, FT_DEBUG_HOOK_UNPATENTED_HINTING, FT_ERROR, FT_FACE_FLAG_HINTER, FT_FACE_FLAG_SCALABLE, FT_FACE_FLAG_TRICKY, FT_Get_Module_Interface(), FT_IS_SCALABLE, FT_PARAM_TAG_UNPATENTED_HINTING, FT_STREAM_SEEK, FT_TRACE2, FT_TRACE5, TT_FaceRec_::glyph_locations, i, SFNT_Interface_::init_face, library, SFNT_Interface_::load_face, NULL, TRUE, tt_check_single_notdef(), tt_check_trickyness(), tt_face_load_cvt(), tt_face_load_fpgm(), tt_face_load_hdmx(), tt_face_load_loca(), tt_face_load_prep(), TT_Init_Glyph_Loading(), and TTAG_true.
Definition at line 213 of file ttobjs.c.
References TT_TableRec_::CheckSum, TT_FaceRec_::dir_tables, TT_FaceRec_::goto_table, i, TT_TableRec_::Length, NULL, TT_FaceRec_::root, FT_FaceRec_::stream, TT_TableRec_::Tag, and tt_synth_sfnt_checksum().
Referenced by tt_check_trickyness_sfnt_ids().
tt_size_done | ( | FT_Size | ttsize | ) |
Definition at line 1099 of file ttobjs.c.
References FALSE, TT_SizeRec_::ttmetrics, and TT_Size_Metrics_::valid.
tt_size_init | ( | FT_Size | ttsize | ) |
Definition at line 1070 of file ttobjs.c.
References error, FALSE, TT_SizeRec_::strike_index, TT_SizeRec_::ttmetrics, and TT_Size_Metrics_::valid.
tt_size_reset | ( | TT_Size | size | ) |
Definition at line 1126 of file ttobjs.c.
References FT_FaceRec_::ascender, FT_Size_Metrics_::ascender, FT_FaceRec_::descender, FT_Size_Metrics_::descender, error, FALSE, FT_DivFix(), FT_MulDiv(), FT_MulFix(), FT_PIX_ROUND, TT_FaceRec_::header, FT_FaceRec_::height, FT_Size_Metrics_::height, if(), FT_Size_Metrics_::max_advance, FT_FaceRec_::max_advance_width, TT_FaceRec_::root, TRUE, FT_FaceRec_::units_per_EM, FT_Size_Metrics_::x_ppem, FT_Size_Metrics_::x_scale, FT_Size_Metrics_::y_ppem, and FT_Size_Metrics_::y_scale.
Referenced by tt_size_request().
tt_slot_init | ( | FT_GlyphSlot | slot | ) |
Definition at line 1280 of file ttobjs.c.
References FT_GlyphLoader_CreateExtra().
Definition at line 187 of file ttobjs.c.
References error, FT_FRAME_ENTER, FT_FRAME_EXIT, FT_GET_BYTE, FT_GET_ULONG, and i.
Referenced by tt_get_sfnt_checksum().