Home
last modified time | relevance | path

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

/external/fonttools/Lib/fontTools/ttLib/tables/
DC_P_A_L_.py22 self.paletteTypes = []
50 self.paletteTypes = self._decompileUInt32Array(
77 paletteTypes = self._compilePaletteTypes()
91 if len(paletteTypes) == 0:
95 pos += len(paletteTypes)
111 colorRecords, paletteTypes, paletteLabels,
134 if self.version == 0 or not any(self.paletteTypes):
136 assert len(self.paletteTypes) == len(self.palettes)
138 for ptype in self.paletteTypes])
164 paletteTypes = {i: typ for (i, typ) in enumerate(self.paletteTypes)}
[all …]
/external/fonttools/Tests/ttLib/tables/
DC_P_A_L_test.py89 self.assertEqual(cpal.paletteTypes, [0, 0])
101 self.assertEqual(cpal.paletteTypes, [1, 2])
211 self.assertEqual(cpal.paletteTypes, [2])
/external/fonttools/Lib/fontTools/colorLib/
Dbuilder.py271 paletteTypes: Optional[Sequence[ColorPaletteType]] = None,
323 if any(v is not None for v in (paletteTypes, paletteLabels, paletteEntryLabels)):
326 if paletteTypes is not None:
327 if len(paletteTypes) != len(palettes):
331 cpal.paletteTypes = [ColorPaletteType(t).value for t in paletteTypes]
333 cpal.paletteTypes = [C_P_A_L_.table_C_P_A_L_.DEFAULT_PALETTE_TYPE] * len(
/external/fonttools/Tests/colorLib/
Dbuilder_test.py131 paletteTypes = [
138 cpal = builder.buildCPAL(palettes, paletteTypes=paletteTypes)
145 assert cpal.paletteTypes == paletteTypes
179 assert cpal.paletteTypes == [cpal.DEFAULT_PALETTE_TYPE] * len(palettes)
200 builder.buildCPAL([[(0, 0, 0, 0)], [(1, 1, 1, 1)]], paletteTypes=[1])
/external/fonttools/Lib/fontTools/
DfontBuilder.py852 paletteTypes=None, argument
867 paletteTypes=paletteTypes,