zenilib
0.5.3.0
|
#include <ft2build.h>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_OBJECTS_H>
#include <FT_INTERNAL_STREAM_H>
#include <FT_TRUETYPE_TAGS_H>
#include <FT_TYPE1_TABLES_H>
#include "cffload.h"
#include "cffparse.h"
#include "cfferrs.h"
Go to the source code of this file.
Macros | |
#define | FT_COMPONENT trace_cffload |
#define | FT_STRUCTURE CFF_FontRec |
Variables | |
static const FT_UShort | cff_expert_charset [166] |
static const FT_UShort | cff_expert_encoding [256] |
static const FT_UShort | cff_expertsubset_charset [87] |
static const FT_UShort | cff_isoadobe_charset [229] |
static const FT_UShort | cff_standard_encoding [256] |
#define FT_STRUCTURE CFF_FontRec |
cff_charset_cid_to_gindex | ( | CFF_Charset | charset, |
FT_UInt | cid | ||
) |
Definition at line 816 of file cffload.c.
Referenced by cff_encoding_load(), and cff_slot_load().
|
static |
Definition at line 779 of file cffload.c.
References CFF_CharsetRec_::cids, error, FT_NEW_ARRAY, i, j, CFF_CharsetRec_::max_cid, CFF_CharsetRec_::num_glyphs, and CFF_CharsetRec_::sids.
Referenced by cff_charset_load(), and cff_encoding_load().
|
static |
Definition at line 839 of file cffload.c.
References cff_charset_free_cids(), CFF_CharsetRec_::format, FT_FREE, FT_StreamRec_::memory, CFF_CharsetRec_::offset, and CFF_CharsetRec_::sids.
Referenced by cff_font_done().
|
static |
Definition at line 830 of file cffload.c.
References CFF_CharsetRec_::cids, FT_FREE, and CFF_CharsetRec_::max_cid.
Referenced by cff_charset_done().
|
static |
Definition at line 854 of file cffload.c.
References cff_charset_compute_cids(), cff_expert_charset, cff_expertsubset_charset, cff_isoadobe_charset, CFF_CharsetRec_::cids, error, CFF_CharsetRec_::format, FT_ARRAY_COPY, FT_ERROR, FT_FRAME_ENTER, FT_FRAME_EXIT, FT_FREE, FT_GET_USHORT, FT_NEW_ARRAY, FT_READ_BYTE, FT_READ_USHORT, FT_STREAM_SEEK, i, j, FT_StreamRec_::memory, CFF_CharsetRec_::offset, and CFF_CharsetRec_::sids.
Referenced by cff_font_load().
|
static |
Definition at line 651 of file cffload.c.
References CFF_FDSelectRec_::data, CFF_FDSelectRec_::data_size, CFF_FDSelectRec_::format, FT_FRAME_RELEASE, and CFF_FDSelectRec_::range_count.
Referenced by cff_font_done().
|
static |
Definition at line 1044 of file cffload.c.
References CFF_EncodingRec_::count, CFF_EncodingRec_::format, and CFF_EncodingRec_::offset.
Referenced by cff_font_done().
|
static |
Definition at line 1053 of file cffload.c.
References cff_charset_cid_to_gindex(), cff_charset_compute_cids(), cff_expert_encoding, cff_standard_encoding, CFF_EncodingRec_::codes, CFF_EncodingRec_::count, FT_StreamRec_::cursor, error, for(), CFF_EncodingRec_::format, FT_ARRAY_COPY, FT_ERROR, FT_FRAME_ENTER, FT_FRAME_EXIT, FT_READ_BYTE, FT_READ_USHORT, FT_STREAM_SEEK, i, j, k, FT_StreamRec_::memory, CFF_EncodingRec_::offset, sid, CFF_EncodingRec_::sids, and CFF_CharsetRec_::sids.
Referenced by cff_font_load().
cff_fd_select_get | ( | CFF_FDSelect | fdselect, |
FT_UInt | glyph_index | ||
) |
Definition at line 708 of file cffload.c.
References FT_NEXT_USHORT.
Referenced by cff_decoder_prepare(), and cff_slot_load().
cff_font_done | ( | CFF_Font | font | ) |
Definition at line 1628 of file cffload.c.
References cff_charset_done(), CFF_Done_FD_Select(), cff_encoding_done(), cff_index_done(), cff_subfont_done(), FT_FREE, and idx.
Referenced by cff_face_done().
cff_font_load | ( | FT_Library | library, |
FT_Stream | stream, | ||
FT_Int | face_index, | ||
CFF_Font | font, | ||
FT_Bool | pure_cff | ||
) |
Definition at line 1418 of file cffload.c.
References cff_charset_load(), cff_encoding_load(), cff_index_done(), cff_index_get_name(), cff_index_get_pointers(), cff_index_init(), CFF_Load_FD_Select(), CFF_MAX_CID_FONTS, cff_subfont_load(), CFF_FontRecDictRec_::charset_offset, CFF_FontRecDictRec_::charstrings_offset, CFF_FontRecDictRec_::cid_fd_array_offset, CFF_FontRecDictRec_::cid_fd_select_offset, CFF_FontRecDictRec_::cid_registry, CFF_FontRecDictRec_::encoding_offset, error, for(), FT_Bool, FT_BOOL, FT_ERROR, FT_FRAME_BYTE, FT_FRAME_END, FT_FRAME_START, FT_NEW_ARRAY, FT_SET_ERROR, FT_STREAM_POS, FT_STREAM_READ_FIELDS, FT_STREAM_SEEK, FT_STREAM_SKIP, FT_TRACE0, FT_TRACE2, FT_TRACE4, FT_ZERO, idx, and NULL.
Referenced by cff_face_init().
cff_get_standard_encoding | ( | FT_UInt | charcode | ) |
Definition at line 183 of file cffload.c.
References cff_standard_encoding.
Referenced by cff_lookup_glyph_by_stdcharcode().
cff_index_access_element | ( | CFF_Index | idx, |
FT_UInt | element, | ||
FT_Byte ** | pbytes, | ||
FT_ULong * | pbyte_len | ||
) |
Definition at line 469 of file cffload.c.
References cff_index_read_offset(), error, FT_ERROR, FT_FRAME_EXTRACT, FT_STREAM_SEEK, and FT_StreamRec_::size.
Referenced by cff_get_glyph_data(), cff_index_get_name(), and cff_subfont_load().
Definition at line 301 of file cffload.c.
References FT_FRAME_RELEASE, FT_FREE, FT_MEM_ZERO, and FT_StreamRec_::memory.
Referenced by cff_font_done(), cff_font_load(), and cff_subfont_done().
Definition at line 567 of file cffload.c.
References FT_FRAME_RELEASE.
Referenced by cff_free_glyph_data(), cff_index_get_name(), and cff_subfont_load().
Definition at line 582 of file cffload.c.
References cff_index_access_element(), cff_index_forget_element(), error, FT_ALLOC, FT_MEM_COPY, and idx.
Referenced by cff_face_init(), and cff_font_load().
Definition at line 383 of file cffload.c.
References cff_index_load_offsets(), error, FT_ALLOC, FT_MEM_COPY, FT_NEW_ARRAY, FT_TRACE0, and NULL.
Referenced by cff_font_load(), and cff_subfont_load().
Definition at line 621 of file cffload.c.
References cff_index_get_string(), and NULL.
Definition at line 611 of file cffload.c.
References NULL.
Referenced by cff_get_name_index(), and cff_index_get_sid_string().
Definition at line 226 of file cffload.c.
References cff_index_read_offset(), error, FT_FRAME_EXTRACT, FT_FREE, FT_MEM_ZERO, FT_READ_BYTE, FT_READ_USHORT, FT_STREAM_POS, FT_STREAM_SKIP, and FT_StreamRec_::memory.
Referenced by cff_font_load(), and cff_subfont_load().
Definition at line 319 of file cffload.c.
References FT_StreamRec_::cursor, error, FT_FRAME_ENTER, FT_FRAME_EXIT, FT_FREE, FT_NEW_ARRAY, FT_PEEK_OFF3, FT_PEEK_ULONG, FT_PEEK_USHORT, FT_STREAM_SEEK, FT_StreamRec_::memory, NULL, and switch().
Referenced by cff_index_get_pointers().
Definition at line 202 of file cffload.c.
References error, and FT_STREAM_READ.
Referenced by cff_index_access_element(), and cff_index_init().
|
static |
Definition at line 664 of file cffload.c.
References CFF_FDSelectRec_::cache_count, CFF_FDSelectRec_::data, CFF_FDSelectRec_::data_size, error, CFF_FDSelectRec_::format, FT_FRAME_EXTRACT, FT_READ_BYTE, FT_READ_USHORT, and FT_STREAM_SEEK.
Referenced by cff_font_load().
|
static |
Definition at line 1406 of file cffload.c.
References cff_index_done(), FT_FREE, CFF_SubFontRec_::local_subrs, and CFF_SubFontRec_::local_subrs_index.
Referenced by cff_font_done().
|
static |
Definition at line 1296 of file cffload.c.
References CFF_PrivateRec_::blue_fuzz, CFF_PrivateRec_::blue_scale, CFF_PrivateRec_::blue_shift, CFF_CODE_PRIVATE, CFF_CODE_TOPDICT, cff_index_access_element(), cff_index_forget_element(), cff_index_get_pointers(), cff_index_init(), cff_parser_init(), cff_parser_run(), CFF_FontRecDictRec_::charstring_type, CFF_FontRecDictRec_::cid_count, CFF_FontRecDictRec_::cid_font_name, CFF_FontRecDictRec_::cid_ordering, CFF_FontRecDictRec_::cid_registry, CFF_FontRecDictRec_::copyright, FT_StreamRec_::cursor, CFF_FontRecDictRec_::embedded_postscript, error, CFF_PrivateRec_::expansion_factor, CFF_FontRecDictRec_::family_name, CFF_SubFontRec_::font_dict, CFF_FontRecDictRec_::font_matrix, FT_FRAME_ENTER, FT_FRAME_EXIT, FT_MEM_ZERO, FT_STREAM_SEEK, FT_TRACE4, CFF_FontRecDictRec_::full_name, CFF_PrivateRec_::lenIV, FT_StreamRec_::limit, CFF_SubFontRec_::local_subrs, CFF_SubFontRec_::local_subrs_index, CFF_PrivateRec_::local_subrs_offset, CFF_FontRecDictRec_::notice, NULL, CFF_PrivateRec_::num_blue_values, CFF_SubFontRec_::private_dict, CFF_FontRecDictRec_::private_offset, CFF_FontRecDictRec_::private_size, CFF_FontRecDictRec_::underline_position, CFF_FontRecDictRec_::underline_thickness, CFF_FontRecDictRec_::version, CFF_FontRecDictRec_::weight, FT_Matrix_::xx, and FT_Matrix_::yy.
Referenced by cff_font_load().
Definition at line 67 of file cffload.c.
Referenced by cff_charset_load().
Definition at line 143 of file cffload.c.
Referenced by cff_encoding_load().
Definition at line 92 of file cffload.c.
Referenced by cff_charset_load().
Definition at line 34 of file cffload.c.
Referenced by cff_charset_load().
Definition at line 107 of file cffload.c.
Referenced by cff_encoding_load(), and cff_get_standard_encoding().