otTables: fix CompositeMode enum missing PLUS mode

Our enumeration of CompositeMode was missing one COMPOSITE_PLUS mode (12)...

see 'PaintComposite' paragraph in https://github.com/googlefonts/colr-gradients-spec/blob/main/OFF_AMD2_WD.md
This commit is contained in:
Cosimo Lupo 2021-08-09 11:27:46 +02:00
parent 627d8e6ee6
commit 9f7a4ea3e7

View File

@ -1480,21 +1480,22 @@ class CompositeMode(IntEnum):
SRC_ATOP = 9 SRC_ATOP = 9
DEST_ATOP = 10 DEST_ATOP = 10
XOR = 11 XOR = 11
SCREEN = 12 PLUS = 12
OVERLAY = 13 SCREEN = 13
DARKEN = 14 OVERLAY = 14
LIGHTEN = 15 DARKEN = 15
COLOR_DODGE = 16 LIGHTEN = 16
COLOR_BURN = 17 COLOR_DODGE = 17
HARD_LIGHT = 18 COLOR_BURN = 18
SOFT_LIGHT = 19 HARD_LIGHT = 19
DIFFERENCE = 20 SOFT_LIGHT = 20
EXCLUSION = 21 DIFFERENCE = 21
MULTIPLY = 22 EXCLUSION = 22
HSL_HUE = 23 MULTIPLY = 23
HSL_SATURATION = 24 HSL_HUE = 24
HSL_COLOR = 25 HSL_SATURATION = 25
HSL_LUMINOSITY = 26 HSL_COLOR = 26
HSL_LUMINOSITY = 27
class PaintFormat(IntEnum): class PaintFormat(IntEnum):