Home
last modified time | relevance | path

Searched refs:cmap (Results 1 – 25 of 101) sorted by relevance

12345

/external/freetype/src/psaux/
Dt1cmap.c35 t1_cmap_std_init( T1_CMapStd cmap, in t1_cmap_std_init() argument
38 T1_Face face = (T1_Face)FT_CMAP_FACE( cmap ); in t1_cmap_std_init()
42 cmap->num_glyphs = (FT_UInt)face->type1.num_glyphs; in t1_cmap_std_init()
43 cmap->glyph_names = (const char* const*)face->type1.glyph_names; in t1_cmap_std_init()
44 cmap->sid_to_string = psnames->adobe_std_strings; in t1_cmap_std_init()
45 cmap->code_to_sid = is_expert ? psnames->adobe_expert_encoding in t1_cmap_std_init()
48 FT_ASSERT( cmap->code_to_sid != NULL ); in t1_cmap_std_init()
53 t1_cmap_std_done( T1_CMapStd cmap ) in t1_cmap_std_done() argument
55 cmap->num_glyphs = 0; in t1_cmap_std_done()
56 cmap->glyph_names = NULL; in t1_cmap_std_done()
[all …]
/external/pdfium/third_party/freetype/src/psaux/
Dt1cmap.c35 t1_cmap_std_init( T1_CMapStd cmap, in t1_cmap_std_init() argument
38 T1_Face face = (T1_Face)FT_CMAP_FACE( cmap ); in t1_cmap_std_init()
42 cmap->num_glyphs = face->type1.num_glyphs; in t1_cmap_std_init()
43 cmap->glyph_names = (const char* const*)face->type1.glyph_names; in t1_cmap_std_init()
44 cmap->sid_to_string = psnames->adobe_std_strings; in t1_cmap_std_init()
45 cmap->code_to_sid = is_expert ? psnames->adobe_expert_encoding in t1_cmap_std_init()
48 FT_ASSERT( cmap->code_to_sid != NULL ); in t1_cmap_std_init()
53 t1_cmap_std_done( T1_CMapStd cmap ) in t1_cmap_std_done() argument
55 cmap->num_glyphs = 0; in t1_cmap_std_done()
56 cmap->glyph_names = NULL; in t1_cmap_std_done()
[all …]
/external/freetype/src/sfnt/
Dttcmap.c55 tt_cmap_init( TT_CMap cmap, in tt_cmap_init() argument
58 cmap->data = table; in tt_cmap_init()
124 tt_cmap0_char_index( TT_CMap cmap, in tt_cmap0_char_index() argument
127 FT_Byte* table = cmap->data; in tt_cmap0_char_index()
135 tt_cmap0_char_next( TT_CMap cmap, in tt_cmap0_char_next() argument
138 FT_Byte* table = cmap->data; in tt_cmap0_char_next()
161 tt_cmap0_get_info( TT_CMap cmap, in tt_cmap0_get_info() argument
164 FT_Byte* p = cmap->data + 4; in tt_cmap0_get_info()
445 tt_cmap2_char_index( TT_CMap cmap, in tt_cmap2_char_index() argument
448 FT_Byte* table = cmap->data; in tt_cmap2_char_index()
[all …]
/external/pdfium/third_party/freetype/src/sfnt/
Dttcmap.c55 tt_cmap_init( TT_CMap cmap, in tt_cmap_init() argument
58 cmap->data = table; in tt_cmap_init()
124 tt_cmap0_char_index( TT_CMap cmap, in tt_cmap0_char_index() argument
127 FT_Byte* table = cmap->data; in tt_cmap0_char_index()
135 tt_cmap0_char_next( TT_CMap cmap, in tt_cmap0_char_next() argument
138 FT_Byte* table = cmap->data; in tt_cmap0_char_next()
161 tt_cmap0_get_info( TT_CMap cmap, in tt_cmap0_get_info() argument
164 FT_Byte* p = cmap->data + 4; in tt_cmap0_get_info()
445 tt_cmap2_char_index( TT_CMap cmap, in tt_cmap2_char_index() argument
448 FT_Byte* table = cmap->data; in tt_cmap2_char_index()
[all …]
/external/sfntly/cpp/src/test/
Dcmap_editing_test.cc43 (CMapTable::Builder*)font_builder->GetTableBuilder(Tag::cmap); in TEST()
59 CMapTablePtr cmap_table = down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in TEST()
61 CMapTable::CMapPtr cmap; in TEST() local
62 cmap.Attach(cmap_table->GetCMap(CMapTable::WINDOWS_BMP)); in TEST()
63 ASSERT_EQ(CMapTable::WINDOWS_BMP, cmap->cmap_id()); in TEST()
76 CMapTablePtr cmap_table = down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in TEST()
80 (CMapTable::Builder*)font_builder->NewTableBuilder(Tag::cmap); in TEST()
84 CMapTable::CMapPtr cmap; in TEST() local
85 cmap.Attach(cmap_iter.Next()); in TEST()
86 if (!cmap) in TEST()
[all …]
/external/harfbuzz_ng/src/
Dhb-ot-font.cc102 this->blob = OT::Sanitizer<OT::cmap>::sanitize (face->reference_table (HB_OT_TAG_cmap)); in init()
103 const OT::cmap *cmap = OT::Sanitizer<OT::cmap>::lock_instance (this->blob); in init() local
108 if (!subtable) subtable = cmap->find_subtable (3, 10); in init()
109 if (!subtable) subtable = cmap->find_subtable (0, 6); in init()
110 if (!subtable) subtable = cmap->find_subtable (0, 4); in init()
112 if (!subtable) subtable = cmap->find_subtable (3, 1); in init()
113 if (!subtable) subtable = cmap->find_subtable (0, 3); in init()
114 if (!subtable) subtable = cmap->find_subtable (0, 2); in init()
115 if (!subtable) subtable = cmap->find_subtable (0, 1); in init()
116 if (!subtable) subtable = cmap->find_subtable (0, 0); in init()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
D_c_m_a_p.py51 table.cmap = tables[seenOffsets[offset]].cmap
66 offset = seen[id(table.cmap)]
72 offset = seen[id(table.cmap)] = done[chunk] = totalOffset + len(tableData)
137 codes = sorted(self.cmap.items())
188 self.cmap = cmap = {}
192 list(map(operator.setitem, [cmap]*lenArray, charCodes, names))
199 charCodeList = sorted(self.cmap.items())
213 self.cmap = {}
214 cmap = self.cmap
221 cmap[safeEval(attrs["code"])] = attrs["name"]
[all …]
/external/icu/icu4c/source/samples/layout/
Dcmaps.cpp59 CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap) in createUnicodeMapper() argument
62 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper()
67 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
85 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + offset10); in createUnicodeMapper()
87 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + offset1); in createUnicodeMapper()
94 return new CMAPFormat4Mapper(cmap, (const CMAPFormat4Encoding *) subtable); in createUnicodeMapper()
100 return new CMAPGroupMapper(cmap, encoding->groups, SWAPL(encoding->nGroups)); in createUnicodeMapper()
110 CMAPFormat4Mapper::CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header) in CMAPFormat4Mapper() argument
111 : CMAPMapper(cmap) in CMAPFormat4Mapper()
170 CMAPGroupMapper::CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups) in CMAPGroupMapper() argument
[all …]
Dcmaps.h27 static CMAPMapper *createUnicodeMapper(const CMAPTable *cmap);
30 CMAPMapper(const CMAPTable *cmap);
41 CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header);
62 CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups);
77 inline CMAPMapper::CMAPMapper(const CMAPTable *cmap) in CMAPMapper() argument
78 : fcmap(cmap) in CMAPMapper()
/external/icu/icu4c/source/test/letest/
Dcmaps.cpp54 CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap) in createUnicodeMapper() argument
57 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper()
66 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
92 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
122 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + foundOffset); in createUnicodeMapper()
137 return new CMAPFormat4Mapper(cmap, (const CMAPFormat4Encoding *) subtable); in createUnicodeMapper()
143 return new CMAPGroupMapper(cmap, encoding->groups, SWAPL(encoding->nGroups)); in createUnicodeMapper()
154 CMAPFormat4Mapper::CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header) in CMAPFormat4Mapper() argument
155 : CMAPMapper(cmap) in CMAPFormat4Mapper()
214 CMAPGroupMapper::CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups) in CMAPGroupMapper() argument
[all …]
Dcmaps.h23 static CMAPMapper *createUnicodeMapper(const CMAPTable *cmap);
26 CMAPMapper(const CMAPTable *cmap);
37 CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header);
58 CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups);
73 inline CMAPMapper::CMAPMapper(const CMAPTable *cmap) in CMAPMapper() argument
74 : fcmap(cmap) in CMAPMapper()
/external/icu/icu4c/source/test/perf/leperf/
Dcmaps.cpp54 CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap) in createUnicodeMapper() argument
57 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper()
66 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
92 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
122 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + foundOffset); in createUnicodeMapper()
134 return new CMAPFormat4Mapper(cmap, (const CMAPFormat4Encoding *) subtable); in createUnicodeMapper()
140 return new CMAPGroupMapper(cmap, encoding->groups, SWAPL(encoding->nGroups)); in createUnicodeMapper()
151 CMAPFormat4Mapper::CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header) in CMAPFormat4Mapper() argument
152 : CMAPMapper(cmap) in CMAPFormat4Mapper()
211 CMAPGroupMapper::CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups) in CMAPGroupMapper() argument
[all …]
Dcmaps.h23 static CMAPMapper *createUnicodeMapper(const CMAPTable *cmap);
26 CMAPMapper(const CMAPTable *cmap);
37 CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header);
58 CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups);
73 inline CMAPMapper::CMAPMapper(const CMAPTable *cmap) in CMAPMapper() argument
74 : fcmap(cmap) in CMAPMapper()
/external/skia/src/images/
DSkImageDecoder_libgif.cpp119 const ColorMapObject* cmap = gif->Image.ColorMap; in find_colormap() local
120 if (NULL == cmap) { in find_colormap()
121 cmap = gif->SColorMap; in find_colormap()
124 if (NULL == cmap) { in find_colormap()
129 if (cmap && ((unsigned)cmap->ColorCount > 256 || in find_colormap()
130 cmap->ColorCount != (1 << cmap->BitsPerPixel))) { in find_colormap()
131 cmap = NULL; in find_colormap()
133 return cmap; in find_colormap()
339 const ColorMapObject* cmap = find_colormap(gif); local
340 if (cmap != NULL) {
[all …]
DSkMovie_gif.cpp119 static void copyLine(uint32_t* dst, const unsigned char* src, const ColorMapObject* cmap, in copyLine() argument
124 const GifColorType& col = cmap->Colors[*src]; in copyLine()
132 const ColorMapObject* cmap, int transparent, int copyWidth, in copyInterlaceGroup() argument
140 copyLine(dst, src, cmap, transparent, copyWidth); in copyInterlaceGroup()
148 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument
167 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace()
170 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace()
173 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace()
175 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace()
179 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument
[all …]
/external/pdfium/third_party/freetype/src/cff/
Dcffcmap.c36 cff_cmap_encoding_init( CFF_CMapStd cmap, in cff_cmap_encoding_init() argument
39 TT_Face face = (TT_Face)FT_CMAP_FACE( cmap ); in cff_cmap_encoding_init()
46 cmap->gids = encoding->codes; in cff_cmap_encoding_init()
53 cff_cmap_encoding_done( CFF_CMapStd cmap ) in cff_cmap_encoding_done() argument
55 cmap->gids = NULL; in cff_cmap_encoding_done()
60 cff_cmap_encoding_char_index( CFF_CMapStd cmap, in cff_cmap_encoding_char_index() argument
67 result = cmap->gids[char_code]; in cff_cmap_encoding_char_index()
74 cff_cmap_encoding_char_next( CFF_CMapStd cmap, in cff_cmap_encoding_char_next() argument
93 result = cmap->gids[code]; in cff_cmap_encoding_char_next()
/external/freetype/src/cff/
Dcffcmap.c36 cff_cmap_encoding_init( CFF_CMapStd cmap, in cff_cmap_encoding_init() argument
39 TT_Face face = (TT_Face)FT_CMAP_FACE( cmap ); in cff_cmap_encoding_init()
46 cmap->gids = encoding->codes; in cff_cmap_encoding_init()
53 cff_cmap_encoding_done( CFF_CMapStd cmap ) in cff_cmap_encoding_done() argument
55 cmap->gids = NULL; in cff_cmap_encoding_done()
60 cff_cmap_encoding_char_index( CFF_CMapStd cmap, in cff_cmap_encoding_char_index() argument
67 result = cmap->gids[char_code]; in cff_cmap_encoding_char_index()
74 cff_cmap_encoding_char_next( CFF_CMapStd cmap, in cff_cmap_encoding_char_next() argument
93 result = cmap->gids[code]; in cff_cmap_encoding_char_next()
/external/sfntly/cpp/src/test/autogenerated/
Dcmap_basic_test.cc71 cmap_table_ = down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in SetUp()
95 Ptr<CMapTable::CMap> cmap; in TEST_P() local
96 cmap.Attach(cmap_table_->GetCMap(platform_id, encoding_id)); in TEST_P()
97 if (!cmap) { in TEST_P()
102 ASSERT_EQ(cmap->platform_id(), platform_id); in TEST_P()
103 ASSERT_EQ(cmap->encoding_id(), encoding_id); in TEST_P()
114 ASSERT_EQ(cmap->GlyphId(character), glyph_id); in TEST_P()
/external/skia/src/pdf/
DSkPDFFont.cpp364 static void append_tounicode_header(SkDynamicMemoryWStream* cmap, in append_tounicode_header() argument
373 cmap->writeText(kHeader); in append_tounicode_header()
385 cmap->writeText(kSysInfo); in append_tounicode_header()
394 cmap->writeText(kTypeInfoHeader); in append_tounicode_header()
399 cmap->writeText(range.c_str()); in append_tounicode_header()
402 cmap->writeText(kTypeInfoFooter); in append_tounicode_header()
405 static void append_cmap_footer(SkDynamicMemoryWStream* cmap) { in append_cmap_footer() argument
411 cmap->writeText(kFooter); in append_cmap_footer()
426 SkDynamicMemoryWStream* cmap) { in append_bfchar_section() argument
431 cmap->writeDecAsText(count); in append_bfchar_section()
[all …]
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c439 XMesaVisual vis, Colormap cmap) in create_xmesa_buffer() argument
460 b->cmap = cmap; in create_xmesa_buffer()
487 xmesa_find_buffer(Display *dpy, Colormap cmap, XMesaBuffer notThis) in xmesa_find_buffer() argument
492 b->cmap == cmap && in xmesa_find_buffer()
558 Colormap cmap) in initialize_visual_and_buffer() argument
956 Colormap cmap; in XMesaCreateWindowBuffer() local
973 cmap = attr.colormap; in XMesaCreateWindowBuffer()
979 cmap = XCreateColormap(v->display, w, attr.visual, AllocNone); in XMesaCreateWindowBuffer()
982 b = create_xmesa_buffer((Drawable) w, WINDOW, v, cmap); in XMesaCreateWindowBuffer()
987 (Drawable) w, cmap )) { in XMesaCreateWindowBuffer()
[all …]
Dxm_api.h167 Colormap cmap );
251 extern XMesaBuffer XMesaCreatePBuffer(XMesaVisual v, Colormap cmap,
270 Colormap cmap,
332 Colormap cmap; /* the X colormap */ member
363 xmesa_find_buffer(Display *dpy, Colormap cmap, XMesaBuffer notThis);
/external/mesa3d/src/mesa/drivers/x11/
Dxm_api.c282 XMesaVisual vis, XMesaColormap cmap) in create_xmesa_buffer() argument
295 b->cmap = cmap; in create_xmesa_buffer()
361 xmesa_find_buffer(XMesaDisplay *dpy, XMesaColormap cmap, XMesaBuffer notThis) in xmesa_find_buffer() argument
365 if (b->display==dpy && b->cmap==cmap && b!=notThis) { in xmesa_find_buffer()
423 setup_truecolor(XMesaVisual v, XMesaBuffer buffer, XMesaColormap cmap) in setup_truecolor() argument
427 (void) cmap; in setup_truecolor()
560 XMesaColormap cmap) in initialize_visual_and_buffer() argument
575 setup_truecolor( v, b, cmap ); in initialize_visual_and_buffer()
998 XMesaColormap cmap; in XMesaCreateWindowBuffer() local
1015 cmap = attr.colormap; in XMesaCreateWindowBuffer()
[all …]
/external/pdfium/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/
Djp2.c814 if(color->jp2_pclr->cmap) opj_free(color->jp2_pclr->cmap); in opj_jp2_free_pclr()
830 if (color->jp2_pclr && color->jp2_pclr->cmap) { in opj_jp2_check_color()
864 if (color->jp2_pclr && color->jp2_pclr->cmap) { in opj_jp2_check_color()
866 opj_jp2_cmap_comp_t *cmap = color->jp2_pclr->cmap; in opj_jp2_check_color() local
871 if (cmap[i].cmp >= image->numcomps) { in opj_jp2_check_color()
872 …opj_event_msg(p_manager, EVT_ERROR, "Invalid component index %d (>= %d).\n", cmap[i].cmp, image->n… in opj_jp2_check_color()
884 OPJ_UINT16 pcol = cmap[i].pcol; in opj_jp2_check_color()
885 assert(cmap[i].mtyp == 0 || cmap[i].mtyp == 1); in opj_jp2_check_color()
890 else if (pcol_usage[pcol] && cmap[i].mtyp == 1) { in opj_jp2_check_color()
894 else if (cmap[i].mtyp == 0 && cmap[i].pcol != 0) { in opj_jp2_check_color()
[all …]
/external/freetype/src/cache/
Dftccmap.c305 FT_CharMap old, cmap = NULL; in FTC_CMapCache_Lookup() local
309 cmap = face->charmaps[cmap_index]; in FTC_CMapCache_Lookup()
311 if ( old != cmap && !no_cmap_change ) in FTC_CMapCache_Lookup()
312 FT_Set_Charmap( face, cmap ); in FTC_CMapCache_Lookup()
316 if ( old != cmap && !no_cmap_change ) in FTC_CMapCache_Lookup()
/external/pdfium/core/src/fpdfapi/fpdf_edit/
Dfpdf_edit_doc.cpp350 CFX_ByteString cmap; in AddWindowsFont() local
356 cmap = bVert ? "ETenms-B5-V" : "ETenms-B5-H"; in AddWindowsFont()
363 cmap = bVert ? "GBK-EUC-V" : "GBK-EUC-H"; in AddWindowsFont()
371 cmap = bVert ? "KSCms-UHC-V" : "KSCms-UHC-H"; in AddWindowsFont()
378 cmap = bVert ? "90ms-RKSJ-V" : "90ms-RKSJ-H"; in AddWindowsFont()
393 pBaseDict->SetAtName("Encoding", cmap); in AddWindowsFont()
736 CFX_ByteString cmap; in AddMacFont() local
744 cmap = bVert ? "ETenms-B5-V" : "ETenms-B5-H"; in AddMacFont()
754 cmap = bVert ? "GBK-EUC-V" : "GBK-EUC-H"; in AddMacFont()
765 cmap = bVert ? "KSCms-UHC-V" : "KSCms-UHC-H"; in AddMacFont()
[all …]

12345