Skip to content

Commit df4919c

Browse files
committed
Splitting COLRv1 content out
1 parent cc3d043 commit df4919c

File tree

2 files changed

+73
-61
lines changed

2 files changed

+73
-61
lines changed

skia-adventure/COLRv1.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
This is a patch to adds 3 other OT-SVG hooks to FreeType2-demos. There is an extension on top of it, to
2+
add COLRv1 rendering, too.
3+
4+
The COLRv1 extension currently has a limitation - it works by over-writing
5+
the SVG rendering with a toggle key, so it depends on the font having a SVG table. In one without, it overwrites
6+
the glyh rendering and does gray. (Hope to fix). So it is convenient that both Rsvg and Adobe SVG rendering are flawed.
7+
[Adobe SVG Native](https://github.com/adobe/svg-native-viewer/issues/185) , and [Rsvg issue](https://gitlab.gnome.org/GNOME/librsvg/-/issues/997).
8+
9+
It is a toggle-key to toggle SVG<->COLRv1 rendering ("z" for "color layered glyphs" as for COLRv0),
10+
and overloads the palette toggle key ("C" for switching palettes for color-blind-friendiness in glyf mode)
11+
to switch CPAL entries. Binaries at the [FontVal binary archive](https://github.com/FontVal-extras/binary-archive/) ).
12+
13+
## Skia COLRv1 Rendering
14+
15+
Skia COLRv1:
16+
17+
![Skia COLRv1](screenshots/ftgrid-colrv1.png)
18+
19+
The glyf data:
20+
21+
![Glyph](screenshots/ftgrid-glyf.png)
22+
23+
Skia COLRv1 to Alpha channel:
24+
25+
![Skia to Alpha](screenshots/ftgrid-kAlpha.png)
26+
27+
Skia COLRv1 to Gray:
28+
29+
![Skia to Gray](screenshots/ftgrid-kGray.png)
30+
31+
## COLRv1 Glyphs vs SVG Glyphs, both rendered via Skia
32+
33+
Skia COLRv1:
34+
35+
![Skia COLRv1](screenshots/ftgrid-colrv1.png)
36+
37+
Skia SVG:
38+
39+
![Skia COLRv1](screenshots/ftgrid-SVG.png)
40+
41+
Difficult to tell the difference by the naked eye. Here is the programmatic highlights (with ImageMagick's `compare`):
42+
43+
![Skia COLRv1](screenshots/ftgrid-diff.png)
44+
45+
## COLRv1 palettes
46+
47+
index 0:
48+
49+
![palette 0](screenshots/ftgrid-palette0.png)
50+
51+
index 1:
52+
53+
![palette 1](screenshots/ftgrid-palette1.png)
54+
55+
index 2:
56+
57+
![palette 2](screenshots/ftgrid-palette2.png)
58+
59+
index 3:
60+
61+
![palette 3](screenshots/ftgrid-palette3.png)
62+
63+
index 4:
64+
65+
![palette 4](screenshots/ftgrid-palette4.png)
66+
67+
index 5:
68+
69+
![palette 5](screenshots/ftgrid-palette5.png)
70+
71+
index 6:
72+
73+
![palette 6](screenshots/ftgrid-palette6.png)

skia-adventure/README.md

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -39,64 +39,3 @@ More screenshots about SVG Native in [the directory above](../svg-native/).
3939
Inkscape also have problems with this SVG ( https://gitlab.com/inkscape/inbox/-/issues/8857 , moved from
4040
https://gitlab.com/inkscape/inkscape/-/issues/4423 )
4141

42-
## Skia COLRv1 Rendering
43-
44-
Skia COLRv1:
45-
46-
![Skia COLRv1](screenshots/ftgrid-colrv1.png)
47-
48-
The glyf data:
49-
50-
![Glyph](screenshots/ftgrid-glyf.png)
51-
52-
Skia COLRv1 to Alpha channel:
53-
54-
![Skia to Alpha](screenshots/ftgrid-kAlpha.png)
55-
56-
Skia COLRv1 to Gray:
57-
58-
![Skia to Gray](screenshots/ftgrid-kGray.png)
59-
60-
## COLRv1 Glyphs vs SVG Glyphs, both rendered via Skia
61-
62-
Skia COLRv1:
63-
64-
![Skia COLRv1](screenshots/ftgrid-colrv1.png)
65-
66-
Skia SVG:
67-
68-
![Skia COLRv1](screenshots/ftgrid-SVG.png)
69-
70-
Difficult to tell the difference by the naked eye. Here is the programmatic highlights (with ImageMagick's `compare`):
71-
72-
![Skia COLRv1](screenshots/ftgrid-diff.png)
73-
74-
## COLRv1 palettes
75-
76-
index 0:
77-
78-
![palette 0](screenshots/ftgrid-palette0.png)
79-
80-
index 1:
81-
82-
![palette 1](screenshots/ftgrid-palette1.png)
83-
84-
index 2:
85-
86-
![palette 2](screenshots/ftgrid-palette2.png)
87-
88-
index 3:
89-
90-
![palette 3](screenshots/ftgrid-palette3.png)
91-
92-
index 4:
93-
94-
![palette 4](screenshots/ftgrid-palette4.png)
95-
96-
index 5:
97-
98-
![palette 5](screenshots/ftgrid-palette5.png)
99-
100-
index 6:
101-
102-
![palette 6](screenshots/ftgrid-palette6.png)

0 commit comments

Comments
 (0)