Partly revert "use 32-bit GlyphIDs in COLRv1 baseGlyphs and layers"
This reverts commit 690080b14d9a4f193092ffc172a39b3e212d307c. We keep 16-bit GlyphIDs for COLRv1 tables, at least for now https://github.com/googlefonts/colr-gradients-spec/pull/24 I keep the GlyphID32 converter in case we may need it in the future.
This commit is contained in:
parent
64731aedd0
commit
09c0e42031
@ -1578,7 +1578,7 @@ otData = [
|
||||
]),
|
||||
|
||||
('BaseGlyphV1Record', [
|
||||
('GlyphID32', 'BaseGlyph', None, None, 'Glyph ID of reference glyph.'),
|
||||
('GlyphID', 'BaseGlyph', None, None, 'Glyph ID of reference glyph.'),
|
||||
('LOffset', 'LayerV1List', None, None, 'Offset (from beginning of BaseGlyphV1List) to LayerV1List.'),
|
||||
]),
|
||||
|
||||
@ -1588,7 +1588,7 @@ otData = [
|
||||
]),
|
||||
|
||||
('LayerV1Record', [
|
||||
('GlyphID32', 'LayerGlyph', None, None, 'Glyph ID of layer glyph (must be in z-order from bottom to top).'),
|
||||
('GlyphID', 'LayerGlyph', None, None, 'Glyph ID of layer glyph (must be in z-order from bottom to top).'),
|
||||
('LOffset', 'Paint', None, None, 'Offset (from beginning of LayerV1List) to Paint subtable.'),
|
||||
]),
|
||||
|
||||
|
@ -83,15 +83,15 @@ COLR_V1_DATA = (
|
||||
b"\x00\t" # LayerRecord[2].LayerGlyph (9)
|
||||
b"\x00\x02" # LayerRecord[2].PaletteIndex (2)
|
||||
b"\x00\x00\x00\x01" # BaseGlyphV1List.BaseGlyphCount (1)
|
||||
b"\x00\x00\x00\n" # BaseGlyphV1List.BaseGlyphV1Record[0].BaseGlyph (10)
|
||||
b"\x00\x00\x00\x0c" # Offset to LayerV1List from beginning of BaseGlyphV1List (12)
|
||||
b"\x00\n" # BaseGlyphV1List.BaseGlyphV1Record[0].BaseGlyph (10)
|
||||
b"\x00\x00\x00\n" # Offset to LayerV1List from beginning of BaseGlyphV1List (10)
|
||||
b"\x00\x00\x00\x03" # LayerV1List.LayerCount (3)
|
||||
b"\x00\x00\x00\x0b" # LayerV1List.LayerV1Record[0].LayerGlyph (11)
|
||||
b"\x00\x00\x00\x1c" # Offset to Paint from beginning of LayerV1List (28)
|
||||
b"\x00\x00\x00\x0c" # LayerV1List.LayerV1Record[1].LayerGlyph (12)
|
||||
b"\x00\x00\x00&" # Offset to Paint from beginning of LayerV1List (38)
|
||||
b"\x00\x00\x00\r" # LayerV1List.LayerV1Record[2].LayerGlyph (13)
|
||||
b"\x00\x00\x00~" # Offset to Paint from beginning of LayerV1List (126)
|
||||
b"\x00\x0b" # LayerV1List.LayerV1Record[0].LayerGlyph (11)
|
||||
b"\x00\x00\x00\x16" # Offset to Paint from beginning of LayerV1List (22)
|
||||
b"\x00\x0c" # LayerV1List.LayerV1Record[1].LayerGlyph (12)
|
||||
b"\x00\x00\x00 " # Offset to Paint from beginning of LayerV1List (32)
|
||||
b"\x00\r" # LayerV1List.LayerV1Record[2].LayerGlyph (13)
|
||||
b"\x00\x00\x00x" # Offset to Paint from beginning of LayerV1List (120)
|
||||
b"\x00\x01" # Paint.Format (1)
|
||||
b"\x00\x02" # Paint.Color.PaletteIndex (2)
|
||||
b" \x00" # Paint.Color.Alpha.value (0.5)
|
||||
|
Loading…
x
Reference in New Issue
Block a user