Home
last modified time | relevance | path

Searched refs:paletteLabels (Results 1 – 5 of 5) sorted by relevance

/external/fonttools/Lib/fontTools/ttLib/tables/
DC_P_A_L_.py23 self.paletteLabels = []
53 self.paletteLabels = self._decompileUInt16Array(
78 paletteLabels = self._compilePaletteLabels()
96 if len(paletteLabels) == 0:
100 pos += len(paletteLabels)
105 pos += len(paletteLabels)
111 colorRecords, paletteTypes, paletteLabels,
143 if self.version == 0 or all(l == self.NO_NAME_ID for l in self.paletteLabels):
145 assert len(self.paletteLabels) == len(self.palettes)
147 for label in self.paletteLabels])
[all …]
/external/fonttools/Lib/fontTools/colorLib/
Dbuilder.py272 paletteLabels: 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)):
337 if paletteLabels is not None:
338 if len(paletteLabels) != len(palettes):
342 cpal.paletteLabels = buildPaletteLabels(paletteLabels, nameTable)
344 cpal.paletteLabels = [C_P_A_L_.table_C_P_A_L_.NO_NAME_ID] * len(palettes)
/external/fonttools/Tests/ttLib/tables/
DC_P_A_L_test.py88 self.assertEqual(cpal.paletteLabels, [cpal.NO_NAME_ID] * len(cpal.palettes))
102 self.assertEqual(cpal.paletteLabels, [258, 259])
210 self.assertEqual(cpal.paletteLabels, [259])
/external/fonttools/Tests/colorLib/
Dbuilder_test.py146 assert cpal.paletteLabels == [cpal.NO_NAME_ID] * len(palettes)
156 paletteLabels = ["First", {"en": "Second", "it": "Seconda"}, None]
160 builder.buildCPAL(palettes, paletteLabels=paletteLabels)
169 paletteLabels=paletteLabels,
180 assert cpal.paletteLabels == [256, 257, cpal.NO_NAME_ID]
205 paletteLabels=["foo"],
/external/fonttools/Lib/fontTools/
DfontBuilder.py853 paletteLabels=None, argument
868 paletteLabels=paletteLabels,