Home
last modified time | relevance | path

Searched refs:nameID (Results 1 – 25 of 48) sorted by relevance

12

/external/fonttools/Lib/fontTools/ttLib/tables/
D_n_a_m_e.py96 def getName(self, nameID, platformID, platEncID, langID=None): argument
98 if ( namerecord.nameID == nameID and
105 def getDebugName(self, nameID): argument
108 if name.nameID != nameID:
126 def setName(self, string, nameID, platformID, platEncID, langID): argument
146 namerecord = self.getName(nameID, platformID, platEncID, langID)
150 self.names.append(makeName(string, nameID, platformID, platEncID, langID))
159 nameID = 1 + max([n.nameID for n in names] + [minNameID - 1])
160 if nameID > 32767:
162 return nameID
[all …]
DC_P_A_L_.py159 paletteLabels = {i: nameID
160 for (i, nameID) in enumerate(self.paletteLabels)}
222 nameID = safeEval(elementAttr["value"])
223 colorLabels[labelIndex] = nameID
/external/fonttools/Tests/ttLib/tables/
D_t_r_a_k_test.py273 add_name(self.font, 'Tight', nameID=275)
274 add_name(self.font, 'Normal', nameID=303)
275 add_name(self.font, 'Loose', nameID=276)
284 add_name(self.font, 'Tight', nameID=262)
285 add_name(self.font, 'Normal', nameID=263)
286 add_name(self.font, 'Loose', nameID=264)
287 add_name(self.font, 'Tight', nameID=265)
288 add_name(self.font, 'Normal', nameID=266)
289 add_name(self.font, 'Loose', nameID=267)
297 add_name(self.font, 'Tight', nameID=265)
[all …]
D_f_v_a_r_test.py41 namerec.nameID = 1 + max([n.nameID for n in nameTable.names] + [256])
58 axis.axisNameID = AddName(font, name).nameID
62 inst.subfamilyNameID = AddName(font, name).nameID
130 AddName(font, "Optical Size").nameID = 256
203 inst.subfamilyNameID = AddName(font, "Light Condensed").nameID
204 inst.postscriptNameID = AddName(font, "Test-LightCondensed").nameID
223 inst.subfamilyNameID = AddName(font, "Light Condensed").nameID
DC_P_A_L_test.py58 def getDebugName(self, nameID): argument
59 return self.names.get(nameID)
/external/fonttools/Snippets/
Dinterpolate.py39 weight.nameID = AddName(font, "Weight").nameID
51 inst.nameID = AddName(font, name).nameID
60 namerec.nameID = 1 + max([n.nameID for n in nameTable.names] + [256])
Drename-fonts.py40 nameID=name_id,
94 name_id = rec.nameID
/external/icu/icu4c/source/test/letest/
Dcfonts.cpp38 const char *le_getNameString(le_font *font, le_uint16 nameID, le_uint16 platform, le_uint16 encodin… in le_getNameString() argument
42 return pfi->getNameString(nameID, platform, encoding, language); in le_getNameString()
45 const LEUnicode16 *le_getUnicodeNameString(le_font *font, le_uint16 nameID, le_uint16 platform, le_… in le_getUnicodeNameString() argument
49 return pfi->getUnicodeNameString(nameID, platform, encoding, language); in le_getUnicodeNameString()
DPortableFontInstance.cpp283 const char *PortableFontInstance::getNameString(le_uint16 nameID, le_uint16 platformID, le_uint16 e… in getNameString() argument
301 SWAPW(nameRecord->languageID) == languageID && SWAPW(nameRecord->nameID) == nameID) { in getNameString()
316 const LEUnicode16 *PortableFontInstance::getUnicodeNameString(le_uint16 nameID, le_uint16 platformI… in getUnicodeNameString() argument
334 SWAPW(nameRecord->languageID) == languageID && SWAPW(nameRecord->nameID) == nameID) { in getUnicodeNameString()
Dcfonts.h26 const char *le_getNameString(le_font *font, le_uint16 nameID, le_uint16 platform, le_uint16 encodin…
28 const LEUnicode16 *le_getUnicodeNameString(le_font *font, le_uint16 nameID, le_uint16 platform, le_…
DPortableFontInstance.h78 …virtual const char *getNameString(le_uint16 nameID, le_uint16 platform, le_uint16 encoding, le_uin…
80 …virtual const LEUnicode16 *getUnicodeNameString(le_uint16 nameID, le_uint16 platform, le_uint16 en…
/external/icu/icu4c/source/test/perf/leperf/
Dcfonts.cpp37 const char *le_getNameString(le_font *font, le_uint16 nameID, le_uint16 platform, le_uint16 encodin… in le_getNameString() argument
41 return pfi->getNameString(nameID, platform, encoding, language); in le_getNameString()
44 const LEUnicode16 *le_getUnicodeNameString(le_font *font, le_uint16 nameID, le_uint16 platform, le_… in le_getUnicodeNameString() argument
48 return pfi->getUnicodeNameString(nameID, platform, encoding, language); in le_getUnicodeNameString()
DPortableFontInstance.cpp291 const char *PortableFontInstance::getNameString(le_uint16 nameID, le_uint16 platformID, le_uint16 e… in getNameString() argument
309 SWAPW(nameRecord->languageID) == languageID && SWAPW(nameRecord->nameID) == nameID) { in getNameString()
324 const LEUnicode16 *PortableFontInstance::getUnicodeNameString(le_uint16 nameID, le_uint16 platformI… in getUnicodeNameString() argument
342 SWAPW(nameRecord->languageID) == languageID && SWAPW(nameRecord->nameID) == nameID) { in getUnicodeNameString()
Dcfonts.h25 const char *le_getNameString(le_font *font, le_uint16 nameID, le_uint16 platform, le_uint16 encodin…
27 const LEUnicode16 *le_getUnicodeNameString(le_font *font, le_uint16 nameID, le_uint16 platform, le_…
DPortableFontInstance.h83 …virtual const char *getNameString(le_uint16 nameID, le_uint16 platform, le_uint16 encoding, le_uin…
85 …virtual const LEUnicode16 *getUnicodeNameString(le_uint16 nameID, le_uint16 platform, le_uint16 en…
/external/fonttools/Lib/fontTools/feaLib/
Dast.py1195 def __init__(self, nameID, platformID, platEncID, langID, string, argument
1198 self.nameID = nameID
1206 self.location, self.nameID, self.platformID,
1230 return "nameid {} {}\"{}\";".format(self.nameID, plat, escaped_string)
1236 builder.add_featureName(self.nameID)
1239 if self.nameID == "size":
1270 def __init__(self, nameID, platformID, platEncID, langID, string, argument
1272 NameRecord.__init__(self, nameID, platformID, platEncID, langID,
1279 item = "_{}".format(builder.cv_num_named_params_.get(self.nameID, 0))
1280 builder.add_cv_parameter(self.nameID)
[all …]
Dbuilder.py277 nameIDs = [name.nameID for name in table.names]
325 nameID, platformID, platEncID, langID, string = name
328 if not isinstance(nameID, int):
329 tag = nameID
334 nameID = self.featureNames_ids_[tag]
339 nameID = self.cv_parameters_ids_[tag]
340 table.setName(string, nameID, platformID, platEncID, langID)
1056 def add_name_record(self, location, nameID, platformID, platEncID, argument
1058 self.names_.append([nameID, platformID, platEncID, langID, string])
/external/skia/tests/
DFontNamesTest.cpp89 SkOTTableName::Record::NameID nameID; member
119 SkOTTableName::Iterator iter(test.data, test.size, test.nameID.predefined.value); in test_synthetic()
/external/skia/src/sfnt/
DSkOTTable_name.cpp486 } while (fType != -1 && nameRecord.nameID.fontSpecific != fType); in next()
488 record.type = nameRecord.nameID.fontSpecific; in next()
/external/skqp/tests/
DFontNamesTest.cpp89 SkOTTableName::Record::NameID nameID; member
119 SkOTTableName::Iterator iter(test.data, test.size, test.nameID.predefined.value); in test_synthetic()
/external/skqp/src/sfnt/
DSkOTTable_name.cpp486 } while (fType != -1 && nameRecord.nameID.fontSpecific != fType); in next()
488 record.type = nameRecord.nameID.fontSpecific; in next()
/external/harfbuzz_ng/src/
Dhb-ot-name-table.hh106 HBUINT16 nameID; /* Name ID. */ member
197 entry->name_id = all_names[i].nameID; in init()
Dhb-ot-stat-table.hh217 NameID nameID; /* The name ID for entries in the 'name' table that member
/external/fonttools/Lib/fontTools/
DfontBuilder.py461 nameID = nameName
463 nameID = _nameIDs[nameName]
467 nameValue, ttFont=self.font, nameID=nameID, windows=windows, mac=mac
/external/fonttools/Tests/ufoLib/
DtestSupport.py350 dict(nameID=1, platformID=1, encodingID=1, languageID=1, string="Name Record."),
351 dict(nameID=2, platformID=1, encodingID=1, languageID=1, string="Name Record.")

12