Home
last modified time | relevance | path

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

12345

/external/skia/src/pdf/
DSkPDFMakeToUnicodeCmap.cpp12 static void append_tounicode_header(SkDynamicMemoryWStream* cmap, in append_tounicode_header() argument
20 cmap->writeText(kHeader); in append_tounicode_header()
32 cmap->writeText(kSysInfo); in append_tounicode_header()
41 cmap->writeText(kTypeInfoHeader); in append_tounicode_header()
43 cmap->writeText("<0000> <FFFF>\n"); in append_tounicode_header()
45 cmap->writeText("<00> <FF>\n"); in append_tounicode_header()
47 cmap->writeText("endcodespacerange\n"); in append_tounicode_header()
50 static void append_cmap_footer(SkDynamicMemoryWStream* cmap) { in append_cmap_footer() argument
56 cmap->writeText(kFooter); in append_cmap_footer()
72 static void write_glyph(SkDynamicMemoryWStream* cmap, in write_glyph() argument
[all …]
/external/skqp/src/pdf/
DSkPDFMakeToUnicodeCmap.cpp12 static void append_tounicode_header(SkDynamicMemoryWStream* cmap, in append_tounicode_header() argument
20 cmap->writeText(kHeader); in append_tounicode_header()
32 cmap->writeText(kSysInfo); in append_tounicode_header()
41 cmap->writeText(kTypeInfoHeader); in append_tounicode_header()
43 cmap->writeText("<0000> <FFFF>\n"); in append_tounicode_header()
45 cmap->writeText("<00> <FF>\n"); in append_tounicode_header()
47 cmap->writeText("endcodespacerange\n"); in append_tounicode_header()
50 static void append_cmap_footer(SkDynamicMemoryWStream* cmap) { in append_cmap_footer() argument
56 cmap->writeText(kFooter); in append_cmap_footer()
72 static void write_glyph(SkDynamicMemoryWStream* cmap, in write_glyph() argument
[all …]
/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 ); 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.c64 tt_cmap_init( TT_CMap cmap, in tt_cmap_init() argument
67 cmap->data = table; in tt_cmap_init()
133 tt_cmap0_char_index( TT_CMap cmap, in tt_cmap0_char_index() argument
136 FT_Byte* table = cmap->data; in tt_cmap0_char_index()
144 tt_cmap0_char_next( TT_CMap cmap, in tt_cmap0_char_next() argument
147 FT_Byte* table = cmap->data; in tt_cmap0_char_next()
170 tt_cmap0_get_info( TT_CMap cmap, in tt_cmap0_get_info() argument
173 FT_Byte* p = cmap->data + 4; in tt_cmap0_get_info()
457 tt_cmap2_char_index( TT_CMap cmap, in tt_cmap2_char_index() argument
460 FT_Byte* table = cmap->data; in tt_cmap2_char_index()
[all …]
/external/freetype/src/pfr/
Dpfrcmap.c28 pfr_cmap_init( PFR_CMap cmap, in pfr_cmap_init() argument
32 PFR_Face face = (PFR_Face)FT_CMAP_FACE( cmap ); in pfr_cmap_init()
37 cmap->num_chars = face->phy_font.num_chars; in pfr_cmap_init()
38 cmap->chars = face->phy_font.chars; in pfr_cmap_init()
46 for ( n = 1; n < cmap->num_chars; n++ ) in pfr_cmap_init()
48 if ( cmap->chars[n - 1].char_code >= cmap->chars[n].char_code ) in pfr_cmap_init()
62 pfr_cmap_done( PFR_CMap cmap ) in pfr_cmap_done() argument
64 cmap->chars = NULL; in pfr_cmap_done()
65 cmap->num_chars = 0; in pfr_cmap_done()
70 pfr_cmap_char_index( PFR_CMap cmap, in pfr_cmap_char_index() argument
[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/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.cpp65 CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap) in createUnicodeMapper() argument
68 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper()
73 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
91 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + offset10); in createUnicodeMapper()
93 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + offset1); in createUnicodeMapper()
100 return new CMAPFormat4Mapper(cmap, (const CMAPFormat4Encoding *) subtable); in createUnicodeMapper()
106 return new CMAPGroupMapper(cmap, encoding->groups, SWAPL(encoding->nGroups)); in createUnicodeMapper()
116 CMAPFormat4Mapper::CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header) in CMAPFormat4Mapper() argument
117 : CMAPMapper(cmap) in CMAPFormat4Mapper()
176 CMAPGroupMapper::CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups) in CMAPGroupMapper() argument
[all …]
Dcmaps.h33 static CMAPMapper *createUnicodeMapper(const CMAPTable *cmap);
36 CMAPMapper(const CMAPTable *cmap);
47 CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header);
68 CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups);
83 inline CMAPMapper::CMAPMapper(const CMAPTable *cmap) in CMAPMapper() argument
84 : fcmap(cmap) in CMAPMapper()
/external/icu/icu4c/source/test/perf/leperf/
Dcmaps.cpp60 CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap) in createUnicodeMapper() argument
63 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper()
72 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
98 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
128 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + foundOffset); in createUnicodeMapper()
140 return new CMAPFormat4Mapper(cmap, (const CMAPFormat4Encoding *) subtable); in createUnicodeMapper()
146 return new CMAPGroupMapper(cmap, encoding->groups, SWAPL(encoding->nGroups)); in createUnicodeMapper()
157 CMAPFormat4Mapper::CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header) in CMAPFormat4Mapper() argument
158 : CMAPMapper(cmap) in CMAPFormat4Mapper()
217 CMAPGroupMapper::CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups) in CMAPGroupMapper() argument
[all …]
Dcmaps.h29 static CMAPMapper *createUnicodeMapper(const CMAPTable *cmap);
32 CMAPMapper(const CMAPTable *cmap);
43 CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header);
64 CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups);
79 inline CMAPMapper::CMAPMapper(const CMAPTable *cmap) in CMAPMapper() argument
80 : fcmap(cmap) in CMAPMapper()
/external/icu/icu4c/source/test/letest/
Dcmaps.cpp56 CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap) in createUnicodeMapper() argument
59 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper()
68 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
94 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
124 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + foundOffset); in createUnicodeMapper()
139 return new CMAPFormat4Mapper(cmap, (const CMAPFormat4Encoding *) subtable); in createUnicodeMapper()
145 return new CMAPGroupMapper(cmap, encoding->groups, SWAPL(encoding->nGroups)); in createUnicodeMapper()
156 CMAPFormat4Mapper::CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header) in CMAPFormat4Mapper() argument
157 : CMAPMapper(cmap) in CMAPFormat4Mapper()
216 CMAPGroupMapper::CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups) in CMAPGroupMapper() argument
[all …]
Dcmaps.h25 static CMAPMapper *createUnicodeMapper(const CMAPTable *cmap);
28 CMAPMapper(const CMAPTable *cmap);
39 CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header);
60 CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups);
75 inline CMAPMapper::CMAPMapper(const CMAPTable *cmap) in CMAPMapper() argument
76 : fcmap(cmap) in CMAPMapper()
/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/trappy/trappy/plotter/
DColorMap.py43 def __init__(self, num_colors, cmap='hsv'): argument
45 self.scalar_map = cmx.ScalarMappable(norm=self.color_norm, cmap=cmap)
48 def cmap(self, index): member in ColorMap
64 return self.cmap(self.num_colors - index)
80 return cls(num_colors, cmap=rgb_map)
/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/harfbuzz_ng/src/
Dhb-ot-cmap-table.hh495 struct cmap struct
511 this->blob = OT::Sanitizer<OT::cmap>::sanitize (face->reference_table (HB_OT_TAG_cmap)); in init() argument
512 const OT::cmap *cmap = OT::Sanitizer<OT::cmap>::lock_instance (this->blob); in init() local
518 if (!subtable) subtable = cmap->find_subtable (3, 10); in init()
519 if (!subtable) subtable = cmap->find_subtable (0, 6); in init()
520 if (!subtable) subtable = cmap->find_subtable (0, 4); in init()
522 if (!subtable) subtable = cmap->find_subtable (3, 1); in init()
523 if (!subtable) subtable = cmap->find_subtable (0, 3); in init()
524 if (!subtable) subtable = cmap->find_subtable (0, 2); in init()
525 if (!subtable) subtable = cmap->find_subtable (0, 1); in init()
[all …]
/external/freetype/src/pcf/
Dpcfdrivr.c79 PCF_CMap cmap = (PCF_CMap)pcfcmap; in pcf_cmap_init() local
85 cmap->num_encodings = face->nencodings; in pcf_cmap_init()
86 cmap->encodings = face->encodings; in pcf_cmap_init()
95 PCF_CMap cmap = (PCF_CMap)pcfcmap; in pcf_cmap_done() local
98 cmap->encodings = NULL; in pcf_cmap_done()
99 cmap->num_encodings = 0; in pcf_cmap_done()
107 PCF_CMap cmap = (PCF_CMap)pcfcmap; in pcf_cmap_char_index() local
108 PCF_Encoding encodings = cmap->encodings; in pcf_cmap_char_index()
114 max = cmap->num_encodings; in pcf_cmap_char_index()
144 PCF_CMap cmap = (PCF_CMap)pcfcmap; in pcf_cmap_char_next() local
[all …]
/external/mesa3d/src/mesa/drivers/x11/
Dxm_api.c285 XMesaVisual vis, XMesaColormap cmap) in create_xmesa_buffer() argument
298 b->cmap = cmap; in create_xmesa_buffer()
364 xmesa_find_buffer(XMesaDisplay *dpy, XMesaColormap cmap, XMesaBuffer notThis) in xmesa_find_buffer() argument
368 if (b->display==dpy && b->cmap==cmap && b!=notThis) { in xmesa_find_buffer()
426 setup_truecolor(XMesaVisual v, XMesaBuffer buffer, XMesaColormap cmap) in setup_truecolor() argument
430 (void) cmap; in setup_truecolor()
563 XMesaColormap cmap) in initialize_visual_and_buffer() argument
578 setup_truecolor( v, b, cmap ); in initialize_visual_and_buffer()
1000 XMesaColormap cmap; in XMesaCreateWindowBuffer() local
1017 cmap = attr.colormap; in XMesaCreateWindowBuffer()
[all …]
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c516 XMesaVisual vis, Colormap cmap) in create_xmesa_buffer() argument
536 b->cmap = cmap; in create_xmesa_buffer()
563 xmesa_find_buffer(Display *dpy, Colormap cmap, XMesaBuffer notThis) in xmesa_find_buffer() argument
568 b->cmap == cmap && in xmesa_find_buffer()
634 Colormap cmap) in initialize_visual_and_buffer() argument
1065 Colormap cmap; in XMesaCreateWindowBuffer() local
1082 cmap = attr.colormap; in XMesaCreateWindowBuffer()
1088 cmap = XCreateColormap(v->display, w, attr.visual, AllocNone); in XMesaCreateWindowBuffer()
1091 b = create_xmesa_buffer((Drawable) w, WINDOW, v, cmap); in XMesaCreateWindowBuffer()
1096 (Drawable) w, cmap )) { in XMesaCreateWindowBuffer()
[all …]
Dxm_api.h169 Colormap cmap );
253 extern XMesaBuffer XMesaCreatePBuffer(XMesaVisual v, Colormap cmap,
272 Colormap cmap,
335 Colormap cmap; /* the X colormap */ member
366 xmesa_find_buffer(Display *dpy, Colormap cmap, XMesaBuffer notThis);
/external/freetype/src/bdf/
Dbdfdrivr.c56 FT_CMapRec cmap; member
67 BDF_CMap cmap = (BDF_CMap)bdfcmap; in bdf_cmap_init() local
68 BDF_Face face = (BDF_Face)FT_CMAP_FACE( cmap ); in bdf_cmap_init()
72 cmap->num_encodings = face->bdffont->glyphs_used; in bdf_cmap_init()
73 cmap->encodings = face->en_table; in bdf_cmap_init()
82 BDF_CMap cmap = (BDF_CMap)bdfcmap; in bdf_cmap_done() local
85 cmap->encodings = NULL; in bdf_cmap_done()
86 cmap->num_encodings = 0; in bdf_cmap_done()
94 BDF_CMap cmap = (BDF_CMap)bdfcmap; in bdf_cmap_char_index() local
95 BDF_encoding_el* encodings = cmap->encodings; in bdf_cmap_char_index()
[all …]
/external/pdfium/third_party/libopenjpeg20/
D0022-jp2_apply_pclr_overflow.patch11 + cmp = cmap[i].cmp;
21 cmp = cmap[i].cmp;
22 pcol = cmap[i].pcol;
39 if (cmap[i].mtyp == 0) {
/external/freetype/src/winfonts/
Dwinfnt.c605 FT_CMapRec cmap; member
613 fnt_cmap_init( FNT_CMap cmap, in fnt_cmap_init() argument
616 FNT_Face face = (FNT_Face)FT_CMAP_FACE( cmap ); in fnt_cmap_init()
622 cmap->first = (FT_UInt32) font->header.first_char; in fnt_cmap_init()
623 cmap->count = (FT_UInt32)( font->header.last_char - cmap->first + 1 ); in fnt_cmap_init()
630 fnt_cmap_char_index( FNT_CMap cmap, in fnt_cmap_char_index() argument
636 char_code -= cmap->first; in fnt_cmap_char_index()
637 if ( char_code < cmap->count ) in fnt_cmap_char_index()
646 fnt_cmap_char_next( FNT_CMap cmap, in fnt_cmap_char_next() argument
654 if ( char_code <= cmap->first ) in fnt_cmap_char_next()
[all …]
/external/freetype/src/cache/
Dftccmap.c302 FT_CharMap old, cmap = NULL; in FTC_CMapCache_Lookup() local
306 cmap = face->charmaps[cmap_index]; in FTC_CMapCache_Lookup()
308 if ( old != cmap && !no_cmap_change ) in FTC_CMapCache_Lookup()
309 FT_Set_Charmap( face, cmap ); in FTC_CMapCache_Lookup()
313 if ( old != cmap && !no_cmap_change ) in FTC_CMapCache_Lookup()

12345