one color font for all Browsers in 250kB
Grzegorz Luk (gluk)
Posts: 161
I prepared a font ResotE-Pistachio that combines two formats (COLRv1 + OpenTypeSVG) – thanks to WOFF2 format it was possible to pack the whole font into 254kB! I hope it will work in all modern browsers.
Information about problems is appreciated
2
Comments
-
Nice!
I'm curious: what's the size within the file of the COLR and 'SVG ' tables?
Also, if an app supports both the COLRv1 and 'SVG ' tables, which do you think it should use?0 -
Peter Constable said:[...] what's the size [...]
- 62kB "clean"
- 2806kB SVGinOT
- 455kB COLRv1
- 3250kB SVGinOT+COLRv1
and then TTF 3250kB → WOFF 520kB → WOFF2 254kBif an app supports both the COLRv1 and 'SVG ' tables, which do you think it should use?
I'm curious too, but as far as I know MS Edge (first app with support for both formats) as first use COLRv1.
0 -
Your test page displayed perfectly for me, in the Mozilla Firefox browser. Running under Windows 10.
1 -
The type showed up perfectly on my Samsung tablet using Chrome, Opera, and Duckduckgo. However, the type defaulted to a generic sans serif using the built-in Samsung browser, which isn't surprising.
Using my Mac, the type displays nicely in Chrome, Brave, and Opera. However, Firefox displayed it in Times Roman (both the older and most current versions). Oddly, Firefox Developer Edition had no problem displaying it. Safari displayed the typeface, but it was solid black rather than color.
1 -
Cory Maylett said:Safari displayed the typeface, but it was solid black rather than color.Cory Maylett said:
Using my Mac, [...] Firefox displayed it in Times Roman (both the older and most current versions).
0 -
But it worked in Firefox Developer Edition. I assume that is their mechanism for making prerelease versions available to developers… which means it should work in a near-future release, right?
(Of course, if you thought it ought to work now, there is still something to investigate.)1 -
Safari Version 13.1.2 (15609.3.5.1.3) on MacOS: solid black
FireFox 99.0.1 (64-bit) on MacOS: looks good
Google Chrome Version 103.0.5060.114 on MacOS: looks good1 -
Also good with Opera 89.0.4447.83 (x86_64) on MacOS.1
-
Helmut Wollmersdorfer said:FireFox 99.0.1 (64-bit) on MacOS: looks good
Apparently, Firefox's preferences retained something from older versions that kept it from displaying.2 -
@Thomas Phinney @Helmut Wollmersdorfer @André G. Isaak @Cory Maylett: thank You for infoCory Maylett said:[...] I'm using Firefox 103.0.1 for MacOS and was still seeing Times Roman. I reset my Firefox preferences back to their defaults [...]
1 -
Grzegorz Luk (gluk) said:I'm curious too, but as far as I know MS Edge (first app with support for both formats) as first use COLRv1.Microsoft Edge ceased support for OpenType-SVG.I suspect (and hope) that all color formats except COLR will eventually become obsolete as soon as Adobe starts supporting it. But maybe the color battle isn't over yet.
1 -
Erwin Denissen said:[...] as Adobe starts supporting it [...]
0 -
Support for animation in OpenType-SVG is optional, so I would rather avoid it.I am not sure if CNC software / machines actually use data from the SVG table, but you are right about single line fonts and OpenType-SVG. However you can't make it a variable font (only COLR supports that), so it is rather limited.Our font editor allows you to make and/or generate single line fonts. See this demo page (single line color in Firefox and Safari; closed monochrome in Edge and Chrome):I didn't know about any difference in support for COLR with quadratic versus cubic curves. Can you be more specific?0
-
Erwin Denissen said:Support for animation in OpenType-SVG is optional, so I would rather avoid it.is optional not mean, that it not may be useful in specific applications in the future
with support for OpenType-SVG in CNC-software is the same situation as with Adobe support for COLR: as soon as starts supporting it[...] I am not sure if CNC software / machines actually use data from the SVG[...][...] I didn't know about any difference in support for COLR with quadratic versus cubic curves. Can you be more specific? [...]my mistake... I keep in mind my research for support for variable COLR fonts with cubic curves and forgot that the problem was in "variable" part[...] However you can't make it a variable font (only COLR supports that), so it is rather limited.
for single-Line, variable fonts the only possibility of existence (as far) is on-line service (for example my LimpelkaSL )0 -
Helmut Wollmersdorfer said:Safari Version 13.1.2 (15609.3.5.1.3) on MacOS: solid blackThat's strange. I just tested a color font with both COLR/CPAL and OpenType-SVG tables, and Safari 13.1.2 displayed it in color.So far I understand, Safari 13 work with the CPAL table, and Safari 14 work with the SVG table.0
-
Michael Rafailyk said:[...] Safari 13 work with the CPAL table [...]
0 -
Grzegorz Luk (gluk) said:according caniuse.com Safari doesn't support COLR/CPAL(v1) but only COLR/CPAL(v0). ResotE-Pistachio uses COLRv1 tables.
1 -
Works great in Firefox on Android!
1
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 798 Font Technology
- 1K Technique and Theory
- 617 Type Business
- 444 Type Design Critiques
- 541 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 483 Typography
- 301 History of Typography
- 114 Education
- 68 Resources
- 498 Announcements
- 79 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 269 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports