290 points · by itsuka · 4y ago · 173 comments
The Arabic scripts look amazing! Gradient support is bigger than color support imo
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.
And even if these fonts don't hit, people will make more!
Couldn't the developer download and host the font locally instead of calling back to Google's servers to load the font?
If "necessary" or "unavoidable" is the test, then it gets really murky — is it really necessary for your ISP to buy wholesale IP transit from another ISP when they could build out their own infra instead? It's entirely avoidable for them to peer at IXes for more economical / efficient routing — and those IXes have switches and routers operated by third parties which can see your traffic — so is it illegal for them to offload your traffic there as well?
A German resident that wants to access Google or any other US site is fine. The packets are allowed to exit the EU because that's what they asked for.
Using Google Fonts means that your EU users have to access Google, a US company, in order to read your site. Most browsers are configured to do this automatically and opting-out of that would be time-consuming and break the whole web. And using Google Fonts gives Google the unprecedented ability to snoop on third-party sites. Yes, they have promised not to do this, but their host government has also promised to break Google's promise for them.
Taking that same logic and applying it to intermediary routing, the only time in which you'd have a GDPR export case is if you tried to access an EU website and your traffic was rerouted into the US or China. Which actually happens way more often than it should.
What 'snooping' is happening during a CSS import?
I have don't so for multiple bigger customers, the law departments were fine with that.
Personally, I think hotlinking should not be considered leaking of PII. Setting a link should not imply endorsement, and embedding an image or an iframe should not create a derived work. The website just gives instructions to the user's browser. I could change the font myself or open another window with the embedded image next to the website, it is merely a convenience. But lawmakers try to put everything in the mold of yesterdays technologies, which is why we cannot have nice things.
Now, how to deal with the fact that Google does get your IP and/or can identify you with cookies? Just ban profiling. It's not so hard.
https://rewis.io/urteile/urteil/lhm-20-01-2022-3-o-1749320/
Therefor selfhosting a Google Font is the way if you still want to use them.
It seems that if this was legitimately useful (instead of just one more thing competitors are obligated to spend money on implementing) we'd have seen SVG fonts used for it already.
Google Chrome teams refuses to implement SVG-in-OT. Instead, they wanted to implemented their COLRv1. https://bugs.chromium.org/p/chromium/issues/detail?id=306078...
So this seems like a good thing overall. Note that Firefox doesn't support it at this time.
Where does Mozilla's revenue come from? Are they an impartial 3rd party?
https://docs.microsoft.com/en-us/typography/opentype/spec/sv...
https://helpx.adobe.com/fonts/using/ot-svg-color-fonts.html
"OpenType-SVG is a font format in which an OpenType font has all or just some of its glyphs represented as SVG (scalable vector graphics) artwork. This allows the display of multiple colors and gradients in a single glyph. Because of these features, we also refer to OpenType-SVG fonts as “color fonts”.
OpenType-SVG fonts allow text to be shown with these graphic qualities, while still allowing it to be edited, indexed, or searched. They may also contain OpenType features that allow glyph substitution or alternate glyph styles."
"every day". as in "each day". The word "everyday" is an adjective.
Descriptivism is "shush, if people are using it this way then it's correct".
That seems like a contradiction. If it were clearly wrong, most people would notice. The fact that they don't surely implies that it isn't very clear.
"So this is pretty cool, but it turns out that the contextual substitution lookup type is really powerful. This is because the table that it references can be itself, which means it can be recursive."
[…]
"So thats a pretty powerful virtual machine. I think the above is sufficient to prove Turing complete-ness."
One could, if so inclined, build a complete COLRv1 font parser in PostScript.
So it's not like this would empower people to do ugly web design that they couldn't already do.
Per your point, I prefer CSS animations to having a blink tag, and people have managed to avoid using those too much the last 20 years.
I wonder if anyone else remembers this; perhaps there's an opportunity to document/archive something about typography which might otherwise get forgotten.
For example this page works fine in Safari
https://fonts.google.com/specimen/Nabla
Both MacOS and iOS.
The expectation that every user get's exactly the same experience regardless of what browser they're using has held the development of great user experiences on the web back for about two decades now. There's no reason why you shouldn't deliver a better experience for some users if their browser is more capable.
Design a working minimal app. It'll probably be close to a plain HTML and CSS site that's rendered on a server. Then add in things that make it nicer to use while checking that the browser supports that feature so you don't break anything if it doesn't. Build up to a really nice experience. Progressively enhance the usr experience. This is literally how websites were built 20 years ago, but then developers got lazy and only wrote apps for the lowest common denominator, which meant any new features in browsers rarely good used, and at the same time slightly unusual browsers like Lynx got abandoned entirely. It really annoys me.
Is it literally infinite, or is it a very large number? As far as I understand it, variable fonts are defined by ranges of finite length, and all CSS color spaces I know of are finite too. I'm being roughly a little pedantic, but mostly just wondering why they wrote it this way, and if I'm missing something. Big fans of Rob Lowe maybe?
Still, it's interesting to see that there's still room for innovation in the font space, even if I'm not in the target demographic.
3E A DESIGNER!
E YOUR DESKTOP/LAPTO
Seems pretty misguided.https://developers.google.com/fonts/faq#how_do_i_contact_goo...
Anyway, hopefully Firefox will add support for COLRv1, at least for some platforms. FreeType has it apparently.
The most obvious examples are emoji which may need hundreds of strokes in many colors to be properly colored as we see them in most places (that aren't HN). Many emoji were rendered as bitmap images on many platforms to be able to get the colors correct prior to font support for color fonts.
And then people who need it will use OCR to translate into text. Which won't always work very well.
More specifically:
<div class="spicy" contenteditable spellcheck="false">hackernews</div>
The text is right there. It's still HTML.This has made me extremely averse to them, to the point where I simply avoid sites using them.
And now they add color...
The maximum size at which 1440p works is 30".
The maximum size at which 2160p (4K) works is 40".
If you’re using a larger size than the ones given above for a given resolution, you will have less than 96dpi, leading to fonts that break or become too thin, and icons that will be less recognizable.
________________________
P.S.: The same can be said for colors. While any CRT in the 90s but even early LCDs like the Fujitsu SIEMENS P17-2 from 2004 (now 30€ on eBay) gets 100% sRGB, full 8-bit colors at exactly 96dpi, many gaming monitors don’t even manage this today. There are still gaming monitors, 1080p at 30" or even 32" using 6-bit panels with FRC that barely hit 70% sRGB on sale today.