CPAL: Color Palette Table

class fontTools.ttLib.tables.C_P_A_L_.table_C_P_A_L_(tag=None)[source]

Bases: DefaultTable

NO_NAME_ID = 65535
DEFAULT_PALETTE_TYPE = 0
decompile(data, ttFont)[source]
compile(ttFont)[source]
toXML(writer, ttFont)[source]
fromXML(name, attrs, content, ttFont)[source]
prune_post_subset(font, options)
class fontTools.ttLib.tables.C_P_A_L_.Color(blue, green, red, alpha)[source]

Bases: Color

hex()[source]
toXML(writer, ttFont, index=None)[source]
classmethod fromHex(value)[source]
classmethod fromRGBA(red, green, blue, alpha)[source]