w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cffcmap.c File Reference
#include <freetype/internal/ftdebug.h>
#include "cffcmap.h"
#include "cffload.h"
#include "cfferrs.h"
Include dependency graph for cffcmap.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 cff_cmap_encoding_init (CFF_CMapStd cmap, FT_Pointer pointer)
 
 cff_cmap_encoding_done (CFF_CMapStd cmap)
 
 cff_cmap_encoding_char_index (CFF_CMapStd cmap, FT_UInt32 char_code)
 
 cff_cmap_encoding_char_next (CFF_CMapStd cmap, FT_UInt32 *pchar_code)
 
 FT_DEFINE_CMAP_CLASS (cff_cmap_encoding_class_rec, sizeof(CFF_CMapStdRec),(FT_CMap_InitFunc) cff_cmap_encoding_init,(FT_CMap_DoneFunc) cff_cmap_encoding_done,(FT_CMap_CharIndexFunc) cff_cmap_encoding_char_index,(FT_CMap_CharNextFunc) cff_cmap_encoding_char_next,(FT_CMap_CharVarIndexFunc) NULL,(FT_CMap_CharVarIsDefaultFunc) NULL,(FT_CMap_VariantListFunc) NULL,(FT_CMap_CharVariantListFunc) NULL,(FT_CMap_VariantCharListFunc) NULL) cff_sid_to_glyph_name(TT_Face face
 
return cff_index_get_sid_string (cff, sid)
 
 cff_cmap_unicode_init (PS_Unicodes unicodes, FT_Pointer pointer)
 
 cff_cmap_unicode_done (PS_Unicodes unicodes)
 
 cff_cmap_unicode_char_index (PS_Unicodes unicodes, FT_UInt32 char_code)
 
 cff_cmap_unicode_char_next (PS_Unicodes unicodes, FT_UInt32 *pchar_code)
 

Variables

FT_UInt idx
 
CFF_Charset charset = &cff->charset
 
FT_UInt sid = charset->sids[idx]
 

Function Documentation

◆ cff_cmap_encoding_char_index()

cff_cmap_encoding_char_index ( CFF_CMapStd  cmap,
FT_UInt32  char_code 
)

Definition at line 59 of file cffcmap.c.

References char_code, cmap, and check-static-inits::result.

◆ cff_cmap_encoding_char_next()

cff_cmap_encoding_char_next ( CFF_CMapStd  cmap,
FT_UInt32 *  pchar_code 
)

Definition at line 73 of file cffcmap.c.

References char_code, cmap, code, and check-static-inits::result.

◆ cff_cmap_encoding_done()

cff_cmap_encoding_done ( CFF_CMapStd  cmap)

Definition at line 52 of file cffcmap.c.

References cmap, and NULL.

◆ cff_cmap_encoding_init()

cff_cmap_encoding_init ( CFF_CMapStd  cmap,
FT_Pointer  pointer 
)

cffcmap.c

CFF character mapping table (cmap) support (body).

Copyright (C) 2002-2020 by David Turner, Robert Wilhelm, and Werner Lemberg.

This file is part of the FreeType project, and may only be used, modified, and distributed under the terms of the FreeType project license, LICENSE.TXT. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully.

Definition at line 35 of file cffcmap.c.

References cff, cmap, CFF_FontRec_::encoding, face, FT_CMAP_FACE, and FT_UNUSED.

◆ cff_cmap_unicode_char_index()

cff_cmap_unicode_char_index ( PS_Unicodes  unicodes,
FT_UInt32  char_code 
)

Definition at line 188 of file cffcmap.c.

References cff, char_code, face, FT_CMAP_FACE, and CFF_FontRec_::psnames.

◆ cff_cmap_unicode_char_next()

cff_cmap_unicode_char_next ( PS_Unicodes  unicodes,
FT_UInt32 *  pchar_code 
)

Definition at line 201 of file cffcmap.c.

References cff, face, FT_CMAP_FACE, and CFF_FontRec_::psnames.

◆ cff_cmap_unicode_done()

cff_cmap_unicode_done ( PS_Unicodes  unicodes)

Definition at line 176 of file cffcmap.c.

References face, FT_CMAP_FACE, FT_FACE_MEMORY, and FT_FREE.

◆ cff_cmap_unicode_init()

cff_cmap_unicode_init ( PS_Unicodes  unicodes,
FT_Pointer  pointer 
)

◆ cff_index_get_sid_string()

return cff_index_get_sid_string ( cff  ,
sid   
)

◆ FT_DEFINE_CMAP_CLASS()

FT_DEFINE_CMAP_CLASS ( cff_cmap_encoding_class_rec  ,
sizeof(CFF_CMapStdRec ,
(FT_CMap_InitFunc cff_cmap_encoding_init,
(FT_CMap_DoneFunc cff_cmap_encoding_done,
(FT_CMap_CharIndexFunc cff_cmap_encoding_char_index,
(FT_CMap_CharNextFunc cff_cmap_encoding_char_next,
(FT_CMap_CharVarIndexFunc NULL,
(FT_CMap_CharVarIsDefaultFunc NULL,
(FT_CMap_VariantListFunc NULL,
(FT_CMap_CharVariantListFunc NULL,
(FT_CMap_VariantCharListFunc NULL 
)

Variable Documentation

◆ charset

Definition at line 137 of file cffcmap.c.

◆ idx

const uint8 idx
Initial value:
{
CFF_Font cff = (CFF_Font)face->extra.data
struct CFF_FontRec_ * CFF_Font
Definition: cfftypes.h:156
CFF_Font cff
Definition: cffdrivr.c:701
FT_Face face
Definition: cffdrivr.c:659

Definition at line 134 of file cffcmap.c.

Referenced by __attribute(), __gmpn_perfect_square_p(), __gmpn_trialdiv(), _cairo_hash_table_lookup(), _cairo_hash_table_lookup_exact_key(), _cairo_hash_table_lookup_unique_key(), _cairo_hash_table_random_entry(), _findSameIndexBlock(), _get_screen_index(), _ISCIIGetUnicodeSet(), _lzw_symbol_table_lookup(), add_alternate1_inverse_map(), add_ligature1_inverse_map(), add_ToUnicode_alternate(), add_ToUnicode_ligature(), add_ToUnicode_single(), add_TTCIDHMetrics(), add_TTCIDVMetrics(), addAlias(), addConverter(), Package::addItem(), addk(), addtoktable(), addtonewktable(), af_face_globals_compute_style_coverage(), af_glyph_hints_reload(), af_shaper_get_elem(), mpark::detail::all_impl(), analysis_color_glyph(), GString::appendfv(), GooString::appendfv(), appendToBuf(), OT::apply_lookup(), asm_ahustore(), asm_ahuvload(), asm_aref(), asm_fload(), asm_fstore(), asm_fuseahuref(), asm_fusexref(), asm_hrefk(), asm_lea(), AssignLineToPoint(), aux_lines(), avl_del_index(), avl_find_index(), avl_index(), avl_ins_index(), avl_iterator_seek_index(), barg(), bcemit_method(), bracketProcessChar(), BrotliTransformDictionaryWord(), cairo_scaled_font_text_to_glyphs_internal_cached(), calc_inveclosure(), call_user_op(), carith_ptr(), caryll_ElementInterfaceOf(), cconv_idx(), cdata_tointeger(), cf2_arrstack_getPointer(), cf2_doFlex(), cf2_initGlobalRegionBuffer(), cf2_initLocalRegionBuffer(), cf2_interpT2CharString(), cf2_stack_getReal(), cf2_stack_roll(), cf2_stack_setReal(), cff_add_string(), cff_blend_build_vector(), cff_dict_get(), cff_dict_set(), cff_empty_index(), cff_face_init(), cff_font_done(), cff_font_load(), cff_get_index(), cff_get_index2(), cff_get_index_header(), cff_get_name(), cff_get_sid(), cff_index_access_element(), cff_index_done(), cff_index_forget_element(), cff_index_get_name(), cff_index_get_pointers(), cff_index_init(), cff_index_load_offsets(), cff_index_read_offset(), cff_index_size(), cff_new_index(), cff_open(), cff_pack_index(), cff_parseSubr(), cff_read_fdarray(), cff_release_index(), cff_set_name(), cff_subfont_load(), check_arrival_expand_ecl(), check_cdata(), check_cfunction(), check_cmap_uvs(), check_complex(), check_complex_double(), check_complex_float(), check_ctype(), check_enum(), check_file(), check_halt_state_context(), check_int32(), check_int64(), check_intptr(), check_node_accept(), check_pointer(), check_typed_cfunction(), check_typed_pointer(), check_uint32(), check_uint64(), checkAssemblyHeaderName(), chop_commands(), CIDFont_base_open(), CIDFont_type0_dofont(), CIDFont_type0_t1cdofont(), OT::ClassDef_remap_and_serialize(), cmsMLUtranslationsCodes(), code_to_index2(), codegen(), collect_reloc(), ComputeDistanceCache(), construct_include_path(), OT::IndexSubtable::copy_glyph_at_idx(), copy_slot(), copyktable(), CollationWeights::countBytes(), cp_decl_intern(), dasm_encode(), dasm_link(), debug_variable_length_prim(), decode_3d_i965(), do_builtin_encoding(), do_custom_encoding(), do_define(), do_lua_kpathsea_lookup(), do_operator2(), dump_sym(), each_backtrace(), enumAlgNames(), enumEitherTrie(), equals_upval(), expr_index(), extractFlag(), Package::extractItem(), Package::extractItems(), FcFreeTypeGetFirstName(), FcFreeTypeQueryFaceInternal(), FcGetDefaultObjectLangIndex(), FcListAppend(), mpark::detail::find_index_impl(), find_table_index(), findAlgName(), Package::findNextItem(), findparanoiac(), findSameIndex2Block(), findTaggedAliasListsOffset(), findTaggedConverterNum(), fmtfp(), foldcap(), for_body(), Frame_Exit(), Frame_Init(), fscope_end(), FT_Get_PS_Font_Value(), FT_Get_Sfnt_Name(), ft_list_get_node_at(), ft_stroke_border_export(), FT_Trace_Get_Name(), FTC_Manager_Done(), gen_assignment(), gen_call(), GenBFrame(), TextWordList::get(), XRefPosSet::get(), get_cfunction_address(), get_class_def(), get_extern(), OT::ResourceMap::get_face(), OT::ResourceForkHeader::get_face(), OT::IndexSubtableFormat1Or3< OffsetType >::get_image_data(), OT::IndexSubtable::get_image_data(), OT::MathKernInfoRecord::get_kerning(), OT::name::accelerator_t::get_name(), get_variable_array_size(), PDFCore::getAnnot(), SimBuffer::B::getAt(), SimBuffer::Flat::getAt0(), JBIG2SymbolDict::getBitmap(), JBIG2PatternDict::getBitmap(), TextWord::getChar(), getCharFromGString(), OCDisplayNode::getChild(), GfxColorSpace::getColorSpaceModeName(), XFAScanner::getDatasetsValue(), TextLine::getEdge(), PDFDoc::getEmbeddedFileMem(), Catalog::getEmbeddedFileName(), PDFDoc::getEmbeddedFileName(), Catalog::getEmbeddedFileNameLength(), PDFDoc::getEmbeddedFileNameLength(), Catalog::getEmbeddedFileStreamObj(), Catalog::getEmbeddedFileStreamRef(), AcroForm::getField(), TextWord::getFontInfo(), TextWord::getFontName(), PDFCore::getFormField(), getHostID(), FoFiType1C::getIndex(), FoFiType1C::getIndexVal(), Package::getItem(), getlocvar(), GetNumOfFrames(), OptionalContent::getOCG(), Hints::getPageRanges(), getpatt(), getpattern(), GlobalParams::getPopupMenuCmd(), units::UnitPreferences::getPreferencesFor(), DisplayState::getSelectRect(), getsize(), getStringByIndex(), FormFieldText::getTextFontSize(), gettree(), GetUnusedFrame(), TextGaps::getW(), getWeightByte(), TextGaps::getX(), XRef::getXRefTablePos(), getZoneByName(), gola_resolve(), GString::GString(), hb_ot_name_get_utf(), iccp_version_supported(), idx94_to_sjis(), idx94_to_std(), idxread(), index2addr(), index2adr(), index_normalize(), indwrite(), init_hanzi_header(), init_resb_result(), initAvailableConvertersList(), InitDStemData(), TextString::insert(), insert_glyph(), AAT::TrackData::interpolate_at(), interpret_enumerate(), interpret_simple(), isValidOlsonID(), jvf_markchar(), jvf_setchar(), OT::hb_kern_machine_t< Driver >::kern(), ktablelen(), lambda_body(), link_nfa_nodes(), list_GPOS_features(), list_GSUB_features(), lj_alloc_malloc(), lj_cdata_index(), lj_cf_jit_util_funck(), lj_cf_jit_util_funcuvname(), lj_cf_jit_util_ircalladdr(), lj_cf_table_concat(), lj_debug_uvname(), lj_debug_uvnamev(), lj_err_argtype(), Load_Format_20(), LoadTrueTypeChar(), BufStream::lookChar(), lookup_cdata_index(), lookup_cmap2(), lookup_cmap6(), lookup_glyph(), lookup_range(), lua_absindex(), lua_absindex2(), lua_getfenv(), lua_getfield(), lua_geti(), lua_getmetatable(), lua_gettable(), lua_getupvalue(), lua_getuservalue(), lua_insert(), lua_iscfunction(), lua_isinteger(), lua_isnumber(), lua_isstring(), lua_isuserdata(), lua_len(), lua_next(), lua_objlen(), lua_pushvalue(), lua_rawget(), lua_rawgeti(), lua_rawgetp(), lua_rawlen(), lua_rawset(), lua_rawseti(), lua_rawsetp(), lua_remove(), lua_replace(), lua_rotate(), lua_setfenv(), lua_setfield(), lua_seti(), lua_setmetatable(), lua_settable(), lua_settop(), lua_setupvalue(), lua_setuservalue(), lua_toboolean(), lua_tocfunction(), lua_tointeger(), lua_tointegerx(), lua_tolstring(), lua_tonumber(), lua_tonumberx(), lua_topointer(), lua_tothread(), lua_touserdata(), lua_type(), lua_upvalueid(), luaJIT_setmode(), luaL_callmeta(), luaL_checkany(), luaL_checkinteger(), luaL_checklstring(), luaL_checknumber(), luaL_checkoption(), luaL_checktype(), luaL_checkudata(), luaL_findtable(), luaL_getmetafield(), luaL_getsubtable(), luaL_len(), luaL_optinteger(), luaL_optlstring(), luaL_optnumber(), luaL_testudata(), luaL_tolstring(), luaV_execute(), main(), GfxIndexedColorSpace::mapColorToBase(), mark_opt_subexp(), OT::Markclass_closure_and_remap_indexes(), MatchWinding(), MBCSAddFromUnicode(), MBCSSingleAddFromUnicode(), mbrests_(), CharCodeToUnicode::mergeCMap(), mergektable(), mplib_new(), mrb_ary_sample(), mrb_gc_arena_restore(), mrb_gc_arena_shrink(), mrb_parser_get_filename(), mrb_proc_cfunc_env_get(), mrb_str_split_m(), mrb_struct_aref(), mrb_struct_aset(), mrb_vm_exec(), newemptycapkey(), newIndexByCallback(), PluralMap< T >::next(), nkf_enc_find(), nkf_enc_from_index(), node_find_index(), numcap(), operator>>(), SimBuffer::Flat::operator[](), SimBuffer::B::operator[](), optimize_subexps(), otl_gsub_add_feat_list(), otl_gsub_apply_alternate(), otl_gsub_apply_chain(), otl_gsub_apply_ligature(), otl_gsub_apply_single(), otl_gsub_set_chain(), otv_SingleSubst_validate(), parse_bracket_exp(), parse_label(), parse_string_list(), parse_subrs(), CharCodeToUnicode::parseCMap(), FormFieldText::parseDA(), parseDate(), parseDictKey(), parseFlagsFile(), pdf_get_array(), pfr_glyph_load_simple(), pfr_log_font_load(), prepcompile(), presym_find(), prim_cmd_chr(), print_afm(), printAssemblyHeadersToStdErr(), printktable(), printpage(), PS_CharString(), ps_dimension_add_t1stem(), PS_GlyphName(), PS_Head(), ps_hints_t1stem3(), ps_mask_clear_bit(), ps_mask_set_bit(), ps_mask_test_bit(), ps_parser_load_field(), ps_table_add(), psaux_get_glyph_name(), psh_hint_table_activate_mask(), psh_hint_table_init(), psh_hint_table_record(), psh_hint_table_record_mask(), pushcapture(), pushclosure(), querycap(), raise_error(), re_match_2_internal(), re_node_set_insert(), re_node_set_remove_at(), re_string_context_at(), re_string_reconstruct(), read_cff(), read_v2_post_names(), read_vf_di(), XRef::readXRefStream(), rec_for(), rec_for_loop(), rec_varg(), recff_cdata_index(), OT::GDEF::remap_layout_variation_indices(), remapShortTimeZone(), remove_glyph(), remove_style(), remove_subset_prefix(), Annots::removeAnnot(), Page::removeAnnot(), Package::removeItem(), Package::removeItems(), res_getResource_68(), res_getTableItemByKey_68(), resizebox(), resolveAliases(), resolveAliasToConverter(), SampledFunction::SampledFunction(), PDFDoc::saveEmbeddedFile(), PDFDoc::saveEmbeddedFile2(), PDFDoc::saveEmbeddedFileU(), XFAScanner::scanFormNode(), XFAScanner::scanNode(), sdsget_cff_sid(), search_duplicated_node(), search_upvar(), select_gsub(), OT::ClassDefFormat1::serialize(), OT::hmtxvmtx< T, H >::serialize(), set_array(), set_regs(), set_struct(), set_value(), graphite2::Slot::setAttr(), JBIG2SymbolDict::setBitmap(), JBIG2PatternDict::setBitmap(), setjitmode(), setmintop(), CMap::setReverseMapVector(), FormFieldText::setTextFontSize(), setWeightByte(), sfnt_find_table_len(), sfnt_find_table_pos(), sfnt_require_table(), sfnt_set_table(), sfnt_table_info(), should_pack(), singlevaraux(), snap_stem_to_blue(), square_mask(), stkindex2adr(), Store(), store_primitive_name(), str_write_java(), string_glob(), RBBIRuleScanner::stripRules(), struct_aref_int(), sub_epsilon_src_nodes(), OT::VariationStore::subset(), OT::PairPosFormat2::subset(), SimBuffer::B::substr_grow(), sym_operator_name(), t1_decoder_parse_metrics(), T1_Get_Kerning(), T1_Open_Face(), t1_ps_get_font_value(), t1char_build_charpath(), T42_Open_Face(), testpattern(), tfm_get_fw_depth(), tfm_get_fw_height(), tfm_get_fw_width(), tmalloc_large(), to_cdata(), FormFieldText::tokenizeDA(), TouchControlPoint(), TouchDStemPoints(), toUpperOrTitle(), SampledFunction::transform(), AAT::KerxSubTableFormat1< KernSubTableHeader >::driver_context_t::transition(), AAT::ContextualSubtable< Types >::driver_context_t::transition(), tt_build_finish(), tt_find_glyph(), TT_Get_HMetrics(), tt_get_index(), TT_Get_VMetrics(), ttf_write_glyf(), ttfLoadGlyphIndex(), ttfLookUpCMAP(), ttfLookUpCMAP2(), ttfLookUpGlyfLOCA(), type_error(), u8Index(), u_fputc_68(), u_scanf_scanset_handler(), u_strcspn_68(), u_strpbrk_68(), u_strspn_68(), ucase_addCaseClosure_68(), ucase_fold_68(), ucase_toFullFolding_68(), ucase_totitle_68(), ucm_addMapping(), ucnv_extMatchFromU(), ucnv_extMatchToU(), ucptrie_internalU8PrevIndex_68(), ucurr_countCurrencyList(), ultag_getExtensionKey(), ultag_getExtensionValue(), ultag_getExtlang(), ultag_getVariant(), unicodeNormalizeNFKC(), unicodeToAscii7(), updatecache(), UpdateNodes(), uprv_convertToLCID_68(), ures_getUTF8StringByIndex_68(), ures_openAvailableLocales_68(), userdata_toptr(), utrie_enum_68(), utrie_fold(), val2str(), ValueChunk(), and Package::~Package().

◆ sid

FT_UInt sid = charset->sids[idx]

Definition at line 138 of file cffcmap.c.

Referenced by remap_sid_t::add(), alias_write_xml(), array_write_xml(), bin_write_xml(), FoFiType1C::buildEncoding(), cairo_cff_font_fallback_generate(), cairo_cff_font_get_sid_for_winansi_char(), cairo_cff_font_subset_dict_string(), cairo_cff_font_write_type1_charset(), cff_charsets_lookup_cid(), cff_encoding_load(), cff_get_glyph_name(), cff_get_glyphname(), cff_get_name_index(), cff_index_get_sid_string(), cff_match_string(), cff_pack_charsets(), cff_subset_plan::collect_sids_in_dicts(), cp_decl_struct(), cp_struct_layout(), cp_struct_name(), crec_ct_tv(), crec_tv_ct(), FFgetsid(), CFF::CFF1SuppEncData::get_codes(), CFF::Charset0::get_glyph(), CFF::Charset1_2< TYPE >::get_glyph(), CFF::Charset::get_glyph(), OT::cff1::accelerator_t::get_glyph_name(), CFF::Encoding::get_supplement_codes(), FoFiType1C::getString(), OT::cff1::accelerator_templ_t< PRIVOPSET, PRIVDICTVAL >::glyph_to_code(), OT::cff1::accelerator_templ_t< PRIVOPSET, PRIVDICTVAL >::glyph_to_sid(), OT::cff1::accelerator_t::init(), int_write_xml(), intvector_write_xml(), remap_sid_t::is_std_std(), lj_carith_check64(), lj_cconv_ct_tv(), lj_cconv_tv_ct(), lj_cdata_get(), lj_cf_ffi_clib___index(), load_base_CMap(), OT::cff1::lookup_expert_charset_for_glyph(), OT::cff1::lookup_expert_encoding_for_code(), OT::cff1::lookup_expert_subset_charset_for_glyph(), OT::cff1::lookup_standard_encoding_for_code(), nameGlyphsAccordingToCFF(), remap_sid_t::offset_sid(), graphite2::operator<<(), remap_sid_t::operator[](), parse_part1(), pdf_font_load_type1(), pdf_font_load_type1c(), cff_subset_plan::plan_subset_charset(), cff_subset_plan::plan_subset_encoding(), printContainer(), readcffenc(), recff_cdata_index(), recff_clib_index(), CFF::Charset::serialize(), OT::cff1::accelerator_templ_t< PRIVOPSET, PRIVDICTVAL >::sid_to_glyph(), OT::cff1::accelerator_templ_t< PRIVOPSET, PRIVDICTVAL >::std_code_to_glyph(), string_write_xml(), table_write_xml(), and remap_sid_t::unoffset_sid().