| /plan9/sys/src/cmd/gs/src/ |
| H A D | gsfcmap.c | 59 identity_decode_next(const gs_cmap_t *pcmap, const gs_const_string *str, in identity_decode_next() argument 64 (const gs_cmap_identity_t *)pcmap; in identity_decode_next() 97 identity_enum_ranges(const gs_cmap_t *pcmap, gs_cmap_ranges_enum_t *pre) in identity_enum_ranges() argument 99 gs_cmap_ranges_enum_setup(pre, pcmap, &identity_range_procs); in identity_enum_ranges() 153 identity_enum_lookups(const gs_cmap_t *pcmap, int which, in identity_enum_lookups() argument 156 gs_cmap_lookups_enum_setup(pre, pcmap, in identity_enum_lookups() 161 identity_is_identity(const gs_cmap_t *pcmap, int font_index_only) in identity_is_identity() argument 224 gs_cmap_is_identity(const gs_cmap_t *pcmap, int font_index_only) in gs_cmap_is_identity() argument 226 return pcmap->procs->is_identity(pcmap, font_index_only); in gs_cmap_is_identity() 236 gs_cmap_decode_next(const gs_cmap_t *pcmap, const gs_const_string *str, in gs_cmap_decode_next() argument [all …]
|
| H A D | gsfcid2.c | 105 const gs_cmap_tt_16bit_format4_t *pcmap = in tt_16bit_format4_decode_next() local 107 gs_font_type42 *pfont = pcmap->font; in tt_16bit_format4_decode_next() 119 for (segment2 = 0; segment2 < pcmap->segCount2; segment2 += 2) { in tt_16bit_format4_decode_next() 122 ACCESS(pcmap->endCount + segment2, 2, ttdata); in tt_16bit_format4_decode_next() 125 ACCESS(pcmap->startCount + segment2, 2, ttdata); in tt_16bit_format4_decode_next() 129 ACCESS(pcmap->idDelta + segment2, 2, ttdata); in tt_16bit_format4_decode_next() 131 ACCESS(pcmap->idRangeOffset + segment2, 2, ttdata); in tt_16bit_format4_decode_next() 134 ulong gidoff = pcmap->idRangeOffset + segment2 + roff + in tt_16bit_format4_decode_next() 168 tt_16bit_format4_enum_ranges(const gs_cmap_t *pcmap, in tt_16bit_format4_enum_ranges() argument 171 gs_cmap_ranges_enum_setup(pre, pcmap, &tt_16bit_format4_range_procs); in tt_16bit_format4_enum_ranges() [all …]
|
| H A D | gdevpsfm.c | 103 stream *s, int which, const gs_cmap_t *pcmap, in cmap_put_code_map() argument 110 int font_index = (pcmap->num_fonts <= 1 ? 0 : -1); in cmap_put_code_map() 113 for (gs_cmap_lookups_enum_init(pcmap, which, &lenum); in cmap_put_code_map() 177 int code = pcmap->glyph_name(mem, (gs_glyph)value, &str, in cmap_put_code_map() 178 pcmap->glyph_name_data); in cmap_put_code_map() 204 stream *s, const gs_cmap_t *pcmap, in psf_write_cmap() argument 209 (alt_cmap_name ? alt_cmap_name : &pcmap->CMapName); in psf_write_cmap() 210 const gs_cid_system_info_t *const pcidsi = pcmap->CIDSystemInfo; in psf_write_cmap() 212 switch (pcmap->CMapType) { in psf_write_cmap() 221 if (!pcmap->ToUnicode) { in psf_write_cmap() [all …]
|
| H A D | zfcmap.c | 50 free_code_map(gx_code_map_t * pcmap, gs_memory_t * mem) in free_code_map() argument 52 if (pcmap->lookup) { in free_code_map() 55 for (i = 0; i < pcmap->num_lookup; ++i) { in free_code_map() 56 gx_cmap_lookup_range_t *pclr = &pcmap->lookup[i]; in free_code_map() 62 gs_free_object(mem, pcmap->lookup, "free_code_map(map)"); in free_code_map() 124 acquire_code_map(gx_code_map_t *pcmap, const ref *pref, gs_cmap_adobe1_t *root, in acquire_code_map() argument 151 pcmap->lookup = pclr; in acquire_code_map() 152 pcmap->num_lookup = num_lookup; in acquire_code_map() 323 const gs_cmap_t *pcmap; in ztype0_get_cmap() local 340 pcmap = r_ptr(pcodemap, gs_cmap_t); in ztype0_get_cmap() [all …]
|
| H A D | gxfcmap.h | 171 int (*decode_next)(const gs_cmap_t *pcmap, const gs_const_string *str, 179 void (*enum_ranges)(const gs_cmap_t *pcmap, 186 void (*enum_lookups)(const gs_cmap_t *pcmap, int which, 193 bool (*is_identity)(const gs_cmap_t *pcmap, int font_index_only); 261 void gs_cmap_ranges_enum_init(const gs_cmap_t *pcmap, 288 void gs_cmap_lookups_enum_init(const gs_cmap_t *pcmap, int which, 299 void gs_cmap_init(const gs_memory_t *mem, gs_cmap_t *pcmap, int num_fonts); 313 const gs_cmap_t *pcmap, 316 const gs_cmap_t *pcmap, 322 bool gs_cmap_is_identity(const gs_cmap_t *pcmap, int font_index_only); [all …]
|
| H A D | gsfont0c.c | 33 gs_cmap_t *pcmap, int wmode, const gs_matrix *psmat, in type0_from_cidfont_cmap() argument 71 font0->data.CMap = pcmap; in type0_from_cidfont_cmap() 88 gs_cmap_t *pcmap; in gs_font_type0_from_cidfont() local 89 int code = gs_cmap_create_identity(&pcmap, 2, wmode, mem); in gs_font_type0_from_cidfont() 93 code = type0_from_cidfont_cmap(ppfont0, font, pcmap, wmode, psmat, mem); in gs_font_type0_from_cidfont() 95 gs_free_object(mem, pcmap, "gs_font_type0_from_cidfont(CMap)"); in gs_font_type0_from_cidfont() 117 gs_cmap_t *pcmap; in gs_font_type0_from_type42() local 119 code = gs_cmap_from_type42_cmap(&pcmap, pfont42, wmode, mem); in gs_font_type0_from_type42() 122 code = type0_from_cidfont_cmap(&pfont0, (gs_font *)pfcid, pcmap, in gs_font_type0_from_type42()
|
| H A D | gsfcmap1.c | 94 gs_cmap_get_shortest_chr(const gx_code_map_t * pcmap, uint *pfidx) in gs_cmap_get_shortest_chr() argument 100 for (i = pcmap->num_lookup - 1; i >= 0; --i) { in gs_cmap_get_shortest_chr() 101 const gx_cmap_lookup_range_t *pclr = &pcmap->lookup[i]; in gs_cmap_get_shortest_chr() 147 code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap, in code_map_decode_next_multidim_regime() argument 179 str, ssize, pcmap->num_lookup); in code_map_decode_next_multidim_regime() 182 for (i = pcmap->num_lookup - 1; i >= 0; --i) { in code_map_decode_next_multidim_regime() 186 const gx_cmap_lookup_range_t *pclr = &pcmap->lookup[i]; in code_map_decode_next_multidim_regime() 338 const gs_cmap_adobe1_t *pcmap = (const gs_cmap_adobe1_t *)pcmap_in; in gs_cmap_adobe1_decode_next() local 349 code_map_decode_next_multidim_regime(&pcmap->def, pstr, pindex, pfidx, pchr, pglyph); in gs_cmap_adobe1_decode_next() 365 code_map_decode_next_multidim_regime(&pcmap->notdef, pstr, pindex, pfidx, pchr, pglyph); in gs_cmap_adobe1_decode_next() [all …]
|
| H A D | gdevpdtc.c | 212 const gs_cmap_t *pcmap, int font_index_only) in attach_cmap_resource() argument 225 if (pcmap->CMapName.size == strlen(*pcmn) && in attach_cmap_resource() 226 !memcmp(*pcmn, pcmap->CMapName.data, pcmap->CMapName.size)) in attach_cmap_resource() 235 is_identity = gs_cmap_is_identity(pcmap, font_index_only); in attach_cmap_resource() 238 pcmres = pdf_find_resource_by_gs_id(pdev, resourceCMap, pcmap->id + font_index_only); in attach_cmap_resource() 241 code = pdf_cmap_alloc(pdev, pcmap, &pcmres, font_index_only); in attach_cmap_resource() 246 if (pcmap->from_Unicode) { in attach_cmap_resource() 249 gs_cmap_ranges_enum_init(pcmap, &renum); in attach_cmap_resource() 256 if (!pdev->Identity_ToUnicode_CMaps[pcmap->WMode]) { in attach_cmap_resource() 260 code = gs_cmap_create_char_identity(&pidcmap, 2, pcmap->WMode, in attach_cmap_resource() [all …]
|
| H A D | gsfcmap.h | 53 int gs_cmap_decode_next(const gs_cmap_t *pcmap, const gs_const_string *str, 66 void gs_cmap_ToUnicode_add_pair(gs_cmap_t *pcmap, int code0, int code2);
|
| H A D | zcidtest.c | 96 gs_cmap_t *pcmap; in zwritecmap() local 106 pcmap = r_ptr(pcodemap, gs_cmap_t); in zwritecmap() 107 code = psf_write_cmap(s, pcmap, zfcmap_put_name_default, NULL, -1); in zwritecmap()
|
| H A D | gdevpdtw.c | 689 pdf_write_cmap(gx_device_pdf *pdev, const gs_cmap_t *pcmap, in pdf_write_cmap() argument 705 if (!pcmap->ToUnicode) { in pdf_write_cmap() 710 code = cos_dict_put_c_key_int(pcd, "/WMode", pcmap->WMode); in pdf_write_cmap() 714 memcpy(buf + 1, pcmap->CMapName.data, pcmap->CMapName.size); in pdf_write_cmap() 716 buf, pcmap->CMapName.size + 1); in pdf_write_cmap() 721 code = pdf_write_cid_system_info_to_stream(pdev, &s, pcmap->CIDSystemInfo, 0); in pdf_write_cmap() 732 code = psf_write_cmap(pdev->memory, writer.binary.strm, pcmap, in pdf_write_cmap()
|
| H A D | gdevpdtw.h | 69 int pdf_write_cmap(gx_device_pdf *pdev, const gs_cmap_t *pcmap,
|
| H A D | gscsepr.c | 155 gs_devicen_color_map * pcmap = &pgs->color_component_map; in gx_set_overprint_Separation() local 157 if (pcmap->use_alt_cspace) in gx_set_overprint_Separation() 170 int mcomp = pcmap->color_map[0]; in gx_set_overprint_Separation()
|
| H A D | gscdevn.c | 525 gs_devicen_color_map * pcmap = &pgs->color_component_map; in gx_set_overprint_DeviceN() local 527 if (pcmap->use_alt_cspace) in gx_set_overprint_DeviceN() 540 int mcomp = pcmap->color_map[i]; in gx_set_overprint_DeviceN()
|
| H A D | gdevpsf.h | 227 int psf_write_cmap(const gs_memory_t *mem, stream *s, const gs_cmap_t *pcmap,
|
| H A D | gdevpdtf.h | 394 int pdf_cmap_alloc(gx_device_pdf *pdev, const gs_cmap_t *pcmap,
|
| H A D | gdevpdtf.c | 979 pdf_cmap_alloc(gx_device_pdf *pdev, const gs_cmap_t *pcmap, in pdf_cmap_alloc() argument 982 return pdf_write_cmap(pdev, pcmap, ppres, font_index_only); in pdf_cmap_alloc()
|
| H A D | gdevpdtt.c | 772 const gs_cmap_t *pcmap = pfont->data.CMap; in pdf_is_compatible_encoding() local 774 const gs_const_string *s1 = &pcmap->CMapName; in pdf_is_compatible_encoding()
|