Home
last modified time | relevance | path

Searched refs:tableTag (Results 1 – 25 of 80) sorted by relevance

1234

/external/fonttools/Tests/mtiLib/
Dmti_test.py164 def check_mti_file(self, name, tableTag=None): argument
166 … xml_expected_path = self.getpath("%s.ttx" % name + ('.'+tableTag if tableTag is not None else ''))
173 table = mtiLib.build(f, font, tableTag=tableTag)
175 if tableTag is not None:
176 self.assertEqual(tableTag, table.tableTag)
177 tableTag = table.tableTag
188 writer.begintag(tableTag); writer.newline()
190 writer.endtag(tableTag); writer.newline()
195 writer.begintag(tableTag); writer.newline()
197 writer.endtag(tableTag); writer.newline()
[all …]
/external/fonttools/Tests/ttLib/tables/
Dtables_test.py249 def read_expected_ttx(testfile, tableTag): argument
251 xml_expected_path = getpath("%s.ttx.%s" % (name, tagToXML(tableTag)))
257 def dump_ttx(font, tableTag): argument
259 font.saveXML(f, newlinestr='\n', tables=[tableTag])
288 def test_xml_from_binary(testfile, tableTag): argument
292 xml_expected = read_expected_ttx(testfile, tableTag)
295 xml_from_binary = dump_ttx(font, tableTag)
300 def test_xml_from_xml(testfile, tableTag): argument
304 xml_expected = read_expected_ttx(testfile, tableTag)
308 setupfile = getpath("%s.ttx.%s.setup" % (name, tagToXML(tableTag)))
[all …]
/external/icu/icu4c/source/samples/layout/
DFontTableCache.cpp61 const void *FontTableCache::find(LETag tableTag) const in find()
64 if (fTableCache[i].tag == tableTag) { in find()
69 const void *table = readFontTable(tableTag); in find()
71 ((FontTableCache *) this)->add(tableTag, table); in find()
76 void FontTableCache::add(LETag tableTag, const void *table) in add() argument
91 fTableCache[fTableCacheCurr].tag = tableTag; in add()
DFontTableCache.h27 const void *find(LETag tableTag) const;
30 virtual const void *readFontTable(LETag tableTag) const = 0;
35 void add(LETag tableTag, const void *table);
DGnomeFontInstance.cpp123 const void *GnomeFontInstance::getFontTable(LETag tableTag) const in getFontTable()
125 return FontTableCache::find(tableTag); in getFontTable()
128 const void *GnomeFontInstance::readFontTable(LETag tableTag) const in readFontTable()
133 FT_Load_Sfnt_Table(fFace, tableTag, 0, NULL, &len); in readFontTable()
137 FT_Load_Sfnt_Table(fFace, tableTag, 0, result, &len); in readFontTable()
/external/icu/icu4c/source/test/perf/leperf/
DFontTableCache.cpp64 const void *FontTableCache::find(LETag tableTag, size_t &length) const in find() argument
67 if (fTableCache[i].tag == tableTag) { in find()
73 const void *table = readFontTable(tableTag, length); in find()
75 ((FontTableCache *) this)->add(tableTag, table, length); in find()
80 void FontTableCache::add(LETag tableTag, const void *table, size_t length) in add() argument
96 fTableCache[fTableCacheCurr].tag = tableTag; in add()
DPortableFontInstance.h72 …const void *readFontTable(LETag tableTag) const { size_t ignored; return readFontTable(tableTag, i… in readFontTable() argument
73 const void *readFontTable(LETag tableTag, size_t &length) const;
80 virtual const void *getFontTable(LETag tableTag) const;
81 virtual const void *getFontTable(LETag tableTag, size_t &length) const;
DFontTableCache.h29 const void *find(LETag tableTag, size_t &length) const;
32 virtual const void *readFontTable(LETag tableTag, size_t &length) const = 0;
37 void add(LETag tableTag, const void *table, size_t length);
DSimpleFontInstance.cpp47 const void *SimpleFontInstance::getFontTable(LETag tableTag) const in getFontTable()
49 if (tableTag == LE_GSUB_TABLE_TAG) { in getFontTable()
53 if (tableTag == LE_GDEF_TABLE_TAG) { in getFontTable()
DPortableFontInstance.cpp257 const void *PortableFontInstance::getFontTable(LETag tableTag) const in getFontTable()
260 return getFontTable(tableTag, ignored); in getFontTable()
263 const void *PortableFontInstance::getFontTable(LETag tableTag, size_t &length) const in getFontTable() argument
265 return FontTableCache::find(tableTag, length); in getFontTable()
268 const void *PortableFontInstance::readFontTable(LETag tableTag, size_t &length) const in readFontTable() argument
272 const void *data= readTable(tableTag, &len); in readFontTable()
DSimpleFontInstance.h36 const void *readFontTable(LETag tableTag) const;
43 virtual const void *getFontTable(LETag tableTag) const;
/external/icu/icu4c/source/test/letest/
DFontTableCache.cpp62 const void *FontTableCache::find(LETag tableTag, size_t &length) const in find() argument
65 if (fTableCache[i].tag == tableTag) { in find()
71 const void *table = readFontTable(tableTag, length); in find()
73 ((FontTableCache *) this)->add(tableTag, table, length); in find()
78 void FontTableCache::add(LETag tableTag, const void *table, size_t length) in add() argument
94 fTableCache[fTableCacheCurr].tag = tableTag; in add()
DFontTableCache.h27 const void *find(LETag tableTag, size_t &length) const;
30 virtual const void *readFontTable(LETag tableTag, size_t &length) const = 0;
35 void add(LETag tableTag, const void *table, size_t length);
DPortableFontInstance.h68 …const void *readFontTable(LETag tableTag) const { size_t ignored; return readFontTable(tableTag, i… in readFontTable() argument
69 const void *readFontTable(LETag tableTag, size_t &length) const;
76 virtual const void *getFontTable(LETag tableTag, size_t &length) const;
DSimpleFontInstance.cpp46 const void *SimpleFontInstance::getFontTable(LETag tableTag, size_t &length) const in getFontTable() argument
50 if (tableTag == LE_GSUB_TABLE_TAG) { in getFontTable()
54 if (tableTag == LE_GDEF_TABLE_TAG) { in getFontTable()
DSimpleFontInstance.h32 const void *readFontTable(LETag tableTag) const;
39 virtual const void *getFontTable(LETag tableTag, size_t &length) const;
/external/harfbuzz_ng/src/
Dhb-ot-hmtx-table.hh71 hb_blob_t *src_blob = hb_sanitize_context_t ().reference_table<H> (plan->source, H::tableTag); in subset_update_header()
83 bool result = plan->add_table (H::tableTag, dest_blob); in subset_update_header()
113 …DEBUG_MSG(SUBSET, nullptr, "%c%c%c%c in src has %d advances, %d lsbs", HB_UNTAG(T::tableTag), _mtx… in subset()
114 …ptr, "%c%c%c%c in dest has %d advances, %d lsbs, %u bytes", HB_UNTAG(T::tableTag), num_advances, g… in subset()
180 bool success = plan->add_table (T::tableTag, result); in subset()
217 table = hb_sanitize_context_t().reference_table<hmtxvmtx> (face, T::tableTag); in init()
326 enum { tableTag = HB_OT_TAG_hmtx }; enumerator
331 enum { tableTag = HB_OT_TAG_vmtx }; enumerator
Dhb-ot-hhea-table.hh89 enum { tableTag = HB_OT_TAG_hhea }; enumerator
92 enum { tableTag = HB_OT_TAG_vhea }; enumerator
/external/fonttools/Lib/fontTools/ttLib/tables/
DotBase.py39 reader = OTTableReader(data, tableTag=self.tableTag)
40 tableClass = getattr(otTables, self.tableTag)
69 writer = OTTableWriter(tableTag=self.tableTag)
104 tableClass = getattr(otTables, self.tableTag)
115 def __init__(self, data, localState=None, offset=0, tableTag=None): argument
120 self.tableTag = tableTag
129 other = self.__class__(self.data, self.localState, self.offset, self.tableTag)
135 return self.__class__(self.data, self.localState, offset, self.tableTag)
225 def __init__(self, localState=None, tableTag=None): argument
229 self.tableTag = tableTag
[all …]
DTupleVariation.py251 def decompilePoints_(numPoints, data, offset, tableTag): argument
253 assert tableTag in ('cvar', 'gvar')
295 (",".join(sorted(badPoints)), tableTag))
542 def decompileTupleVariationStore(tableTag, axisTags, argument
549 pointCount, data, dataPos, tableTag)
559 tableTag, axisTags, tupleData, pointDeltaData))
566 tableTag, axisTags, data, tupleData): argument
567 assert tableTag in ("cvar", "gvar"), tableTag
587 pointCount, tupleData, pos, tableTag)
593 if tableTag == "cvar":
[all …]
DDefaultTable.py12 self.tableTag = Tag(tag)
40 return "<'%s' table at %x>" % (self.tableTag, id(self))
D_h_m_t_x.py36 raise ttLib.TTLibError("not enough '%s' table data" % self.tableTag)
49 log.warning("too much '%s' table data" % self.tableTag)
107 % (self.tableTag, self.advanceName))
/external/fonttools/Lib/fontTools/mtiLib/
D__init__.py813 def parseLookup(lines, tableTag, font, lookupMap=None): argument
842 }[tableTag][typ]
865 def parseGSUBGPOS(lines, font, tableTag): argument
866 container = ttLib.getTableClass(tableTag)()
869 assert tableTag in ('GSUB', 'GPOS')
870 log.debug("Parsing %s", tableTag)
871 self = getattr(ot, tableTag)()
898 lookup = parseLookup(lines, tableTag, font, lookupMap)
1026 def parseTable(lines, font, tableTag=None): argument
1037 if tableTag is None:
[all …]
/external/fonttools/Lib/fontTools/
DfontBuilder.py338 def _initTableWithValues(self, tableTag, defaults, values): argument
339 table = self.font[tableTag] = newTable(tableTag)
346 def _updateTableWithValues(self, tableTag, values): argument
347 table = self.font[tableTag]
642 def setupMetrics(self, tableTag, metrics): argument
644 assert tableTag in ("hmtx", "vmtx")
645 mtxTable = self.font[tableTag] = newTable(tableTag)
/external/fonttools/Lib/fontTools/varLib/
Dmutator.py246 tableTag, itemName = MVAR_ENTRIES[mvarTag]
250 setattr(varfont[tableTag], itemName,
251 getattr(varfont[tableTag], itemName) + delta)
254 for tableTag in 'GSUB','GPOS':
255 if not tableTag in varfont:
257 table = varfont[tableTag].table

1234