Home
last modified time | relevance | path

Searched refs:paletteEntryLabels (Results 1 – 6 of 6) sorted by relevance

/external/fonttools/Lib/fontTools/ttLib/tables/
DC_P_A_L_.py24 self.paletteEntryLabels = []
55 self.paletteEntryLabels = self._decompileUInt16Array(
79 paletteEntryLabels = self._compilePaletteEntryLabels()
101 if len(paletteEntryLabels) == 0:
112 paletteEntryLabels]
152 if self.version == 0 or all(l == self.NO_NAME_ID for l in self.paletteEntryLabels):
154 assert len(self.paletteEntryLabels) == self.numPaletteEntries
156 for label in self.paletteEntryLabels])
191 if self.version > 0 and not all(l == self.NO_NAME_ID for l in self.paletteEntryLabels):
194 for index, label in enumerate(self.paletteEntryLabels):
[all …]
/external/fonttools/Lib/fontTools/colorLib/
Dbuilder.py273 paletteEntryLabels: Optional[Sequence[_OptionalLocalizedString]] = None,
296 if (paletteLabels or paletteEntryLabels) and not nameTable:
323 if any(v is not None for v in (paletteTypes, paletteLabels, paletteEntryLabels)):
346 if paletteEntryLabels is not None:
347 if len(paletteEntryLabels) != cpal.numPaletteEntries:
352 cpal.paletteEntryLabels = buildPaletteLabels(paletteEntryLabels, nameTable)
354 cpal.paletteEntryLabels = [
/external/fonttools/Tests/ttLib/tables/
DC_P_A_L_test.py90 self.assertEqual(cpal.paletteEntryLabels,
103 self.assertEqual(cpal.paletteEntryLabels, [513, 514, 515])
212 self.assertEqual(cpal.paletteEntryLabels,
/external/fonttools/Tests/colorLib/
Dbuilder_test.py147 assert cpal.paletteEntryLabels == [cpal.NO_NAME_ID] * cpal.numPaletteEntries
157 paletteEntryLabels = ["Foo", "Bar"]
162 builder.buildCPAL(palettes, paletteEntryLabels=paletteEntryLabels)
170 paletteEntryLabels=paletteEntryLabels,
181 assert cpal.paletteEntryLabels == [258, 259]
212 paletteEntryLabels=[],
/external/fonttools/Lib/fontTools/
DfontBuilder.py854 paletteEntryLabels=None, argument
869 paletteEntryLabels=paletteEntryLabels,
/external/fonttools/Lib/fontTools/subset/
D__init__.py2107 self.paletteEntryLabels = [
2108 label for i, label in self.paletteEntryLabels if i in retained_palette_indices