by bogwog · 4y ago · 0 comments
And of course, web browsers and text rendering become increasingly more complex and expensive to build/maintain because Google single-handedly decided it.
Makes me think of Fontemon:
https://www.coderelay.io/fontemon.html#player
https://github.com/mmulet/code-relay/blob/main/markdown/HowI...
Perhaps combining this COLRv1 spec and the prior art it's doable today!
Why does this need to be a new spec? Nobody is going to use it for body text. If someone wants those ugly 3D titles, they could use SVG or Canvas.
One of the examples in the OP was colored arabic text for education. That’s an extremely narrow use case which could be entirely supported with custom rendering via SVG, Canvas, WebGL, etc.
This isn’t the end of the world or anything, but it’s annoying and frustrating to see as someone who thinks there should be more browsers and operating systems than the ones Google makes.
They could but then it would be less accessible for screen readers or bots that want to scrape text from a web page for indexing or anything else. Your user agent can also determine if rendering those "ugly 3D titles" is the right thing to do or not, so you could have a plugin that stops them from being rendered.
> there should be more browsers and operating systems than the ones Google makes
These fonts work fine in Firefox.
Screen readers can read SVG, and ARIA exists for adding accessibility to things like Canvas or WebGL (see: https://developer.mozilla.org/en-US/docs/Web/Accessibility/A...).
> These fonts work fine in Firefox.
They in fact do not work at all in Firefox (or any other browser besides Chrome/Edge). If you go to fonts.google.com, they work because that page uses a custom renderer for them.
See the duck demo here (need to scroll down): https://developers.googleblog.com/2022/09/updates-to-emoji-n...
The duck is invisible on Safari on my iPhone and in Firefox (104.0.1) on my desktop