#include <ft2build.h>
#include "cffobjs.h"
Go to the source code of this file.
Classes | |
struct | CFF_Builder_ |
struct | CFF_Decoder_Zone_ |
struct | CFF_Decoder_ |
Defines | |
#define | CFF_MAX_OPERANDS 48 |
#define | CFF_MAX_SUBRS_CALLS 32 |
#define | CFF_MAX_TRANS_ELEMENTS 32 |
Typedefs | |
typedef CFF_Builder_ | CFF_Builder |
typedef CFF_Decoder_Zone_ | CFF_Decoder_Zone |
typedef CFF_Decoder_ | CFF_Decoder |
Functions | |
cff_decoder_init (CFF_Decoder *decoder, TT_Face face, CFF_Size size, CFF_GlyphSlot slot, FT_Bool hinting, FT_Render_Mode hint_mode) | |
cff_decoder_prepare (CFF_Decoder *decoder, CFF_Size size, FT_UInt glyph_index) | |
cff_decoder_parse_charstrings (CFF_Decoder *decoder, FT_Byte *charstring_base, FT_ULong charstring_len) | |
cff_slot_load (CFF_GlyphSlot glyph, CFF_Size size, FT_UInt glyph_index, FT_Int32 load_flags) |
#define CFF_MAX_OPERANDS 48 |
#define CFF_MAX_SUBRS_CALLS 32 |
#define CFF_MAX_TRANS_ELEMENTS 32 |
typedef struct CFF_Builder_ CFF_Builder |
typedef struct CFF_Decoder_ CFF_Decoder |
typedef struct CFF_Decoder_Zone_ CFF_Decoder_Zone |
cff_decoder_init | ( | CFF_Decoder * | decoder, | |
TT_Face | face, | |||
CFF_Size | size, | |||
CFF_GlyphSlot | slot, | |||
FT_Bool | hinting, | |||
FT_Render_Mode | hint_mode | |||
) |
Definition at line 379 of file cffgload.c.
References cff_builder_init(), cff_compute_bias(), CFF_FontRecDictRec_::charstring_type, CFF_SubFontRec_::font_dict, FT_MEM_ZERO, CFF_FontRec_::global_subrs, CFF_FontRec_::num_global_subrs, and CFF_FontRec_::top_font.
Referenced by cff_slot_load().
cff_decoder_parse_charstrings | ( | CFF_Decoder * | decoder, | |
FT_Byte * | charstring_base, | |||
FT_ULong | charstring_len | |||
) |
Definition at line 885 of file cffgload.c.
References T2_Hints_FuncsRec_::apply, CFF_Decoder_Zone_::base, cff_argument_counts, cff_builder_add_point(), cff_builder_add_point1(), cff_builder_close_contour(), cff_builder_start_point(), CFF_COUNT_CHECK_WIDTH, CFF_MAX_OPERANDS, CFF_MAX_SUBRS_CALLS, CFF_MAX_TRANS_ELEMENTS, cff_op_abs, cff_op_add, cff_op_and, cff_op_blend, cff_op_callgsubr, cff_op_callothersubr, cff_op_callsubr, cff_op_closepath, cff_op_cntrmask, cff_op_div, cff_op_dotsection, cff_op_drop, cff_op_dup, cff_op_endchar, cff_op_eq, cff_op_exch, cff_op_flex, cff_op_flex1, cff_op_get, cff_op_hflex, cff_op_hflex1, cff_op_hhcurveto, cff_op_hintmask, cff_op_hlineto, cff_op_hmoveto, cff_op_hsbw, cff_op_hstem, cff_op_hstemhm, cff_op_hvcurveto, cff_op_ifelse, cff_op_index, cff_op_load, cff_op_mul, cff_op_neg, cff_op_not, cff_op_or, cff_op_pop, cff_op_put, cff_op_random, cff_op_rcurveline, cff_op_return, cff_op_rlinecurve, cff_op_rlineto, cff_op_rmoveto, cff_op_roll, cff_op_rrcurveto, cff_op_sbw, cff_op_seac, cff_op_setcurrentpoint, cff_op_sqrt, cff_op_store, cff_op_sub, cff_op_unknown, cff_op_vhcurveto, cff_op_vlineto, cff_op_vmoveto, cff_op_vstem, cff_op_vstemhm, cff_op_vvcurveto, cff_operator_seac(), check_points, T2_Hints_FuncsRec_::close, T2_Hints_FuncsRec_::counter, CFF_Builder_::current, CFF_Decoder_Zone_::cursor, error, FT_Bool, FT_DivFix(), FT_ERROR, FT_GlyphLoader_Add(), FT_MulFix(), FT_Pos, FT_TRACE4, FT_ULONG_MAX, T2_Hints_FuncsRec_::hintmask, T2_Hints_FuncsRec_::hints, CFF_Builder_::hints_funcs, i, if(), RooFitShortHand::L(), CFF_Decoder_Zone_::limit, FT_Outline_::n_points, num_lines, T2_Hints_FuncsRec_::open, CFF_Builder_::path_begun, CFF_Builder_::pos_x, CFF_Builder_::pos_y, root, seed, T2_Hints_FuncsRec_::stems, top(), val, x, x10000L, and y.
Referenced by cff_operator_seac(), and cff_slot_load().
cff_decoder_prepare | ( | CFF_Decoder * | decoder, | |
CFF_Size | size, | |||
FT_UInt | glyph_index | |||
) |
Definition at line 410 of file cffgload.c.
References cff_compute_bias(), cff_fd_select_get(), FT_Generic_::data, error, TT_FaceRec_::extra, CFF_Builder_::face, CFF_FontRec_::fd_select, FT_TRACE4, CFF_Builder_::hints_funcs, CFF_Builder_::hints_globals, if(), CFF_FontRec_::num_subfonts, CFF_InternalRec_::subfonts, CFF_FontRec_::subfonts, and CFF_FontRec_::top_font.
Referenced by cff_slot_load().
cff_slot_load | ( | CFF_GlyphSlot | glyph, | |
CFF_Size | size, | |||
FT_UInt | glyph_index, | |||
FT_Int32 | load_flags | |||
) |
Definition at line 2552 of file cffgload.c.
References CFF_Builder_::advance, CFF_Decoder_::builder, cff_builder_done(), cff_charset_cid_to_gindex(), cff_decoder_init(), cff_decoder_parse_charstrings(), cff_decoder_prepare(), cff_fd_select_get(), cff_free_glyph_data(), cff_get_glyph_data(), CFF_FontRec_::charset, CFF_FontRec_::charstrings_index, CFF_FontRecDictRec_::cid_registry, CFF_CharsetRec_::cids, FALSE, CFF_FontRec_::fd_select, CFF_SubFontRec_::font_dict, CFF_FontRecDictRec_::font_matrix, CFF_FontRecDictRec_::font_offset, FT_Bool, FT_BOOL, FT_GLYPH_FORMAT_BITMAP, FT_GLYPH_FORMAT_OUTLINE, FT_LOAD_ADVANCE_ONLY, FT_LOAD_NO_BITMAP, FT_LOAD_NO_HINTING, FT_LOAD_NO_RECURSE, FT_LOAD_NO_SCALE, FT_LOAD_SBITS_ONLY, FT_LOAD_TARGET_MODE, FT_LOAD_VERTICAL_LAYOUT, FT_MulDiv(), FT_MulFix(), FT_Outline_Get_CBox(), FT_OUTLINE_HIGH_PRECISION, FT_OUTLINE_REVERSE_FILL, FT_Outline_Transform(), FT_Outline_Translate(), FT_Pos, ft_synthesize_vertical_metrics(), FT_Vector_Transform(), FT_Slot_InternalRec_::glyph_delta, FT_Slot_InternalRec_::glyph_matrix, FT_Slot_InternalRec_::glyph_transformed, CFF_Decoder_::glyph_width, CFF_Builder_::hints_funcs, RooFitShortHand::L(), CFF_Builder_::left_bearing, metrics(), n, FT_Outline_::n_points, CFF_Builder_::no_recurse, CFF_FontRec_::num_glyphs, CFF_FontRec_::num_subfonts, FT_Outline_::points, TT_FaceRec_::root, TT_FaceRec_::sfnt, PC3::stream(), FT_FaceRec_::stream, CFF_FontRec_::subfonts, CFF_FontRec_::top_font, TRUE, CFF_FontRecDictRec_::units_per_em, CFF_Decoder_::width_only, FT_Vector_::x, x10000L, FT_BBox_::xMax, FT_BBox_::xMin, FT_Matrix_::xx, FT_Matrix_::xy, FT_Vector_::y, FT_BBox_::yMax, FT_BBox_::yMin, FT_Matrix_::yx, and FT_Matrix_::yy.
Referenced by Load_Glyph().