You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The -webkit-text-stroke property is currently implemented in all major browsers, browsers behave differently when encountering COLRv0 format fonts.
Safari can add strokes to COLRv0 format fonts, but Firefox and Chrome do not, and the COLRv0 format is so widely used today that we need to standardize it to avoid compatibility differences. Test case
The text was updated successfully, but these errors were encountered:
yisibl
changed the title
Standardized text-stroke behavior in COLR table fonts
[fill-stroke] Standardized text-stroke behavior in COLR table fonts
Nov 13, 2021
The content said "please stroke this text" so we're stroking the text. That seems natural to me...
I'm not entirely convinced this is a good idea.... it's clear enough what "stroking the text" means when dealing with monochrome glyphs (just stroke the glyph outline instead of filling it), but it's much less clear how to "stroke" a full-color image. Stroking the outline of each individual colored region may sometimes work OK, if the glyph is not overly complex, but it will often result in an incomprehensible mess.
(What do you do with bitmap glyphs when the content says "please stroke this text"?)
Another point of view might be that COLR glyphs are often not really "text" as people would traditionally understand it; they're often (most often, maybe?) used for inline images. The fact that we use Unicode codepoints and OpenType font technology to conveniently encode, deliver and render these images is an implementation detail, but conceptually 🎃 or 🦃 or 🎅 is an image, and the request "please stroke this text" isn't applicable to it.
Uh oh!
There was an error while loading. Please reload this page.
The
-webkit-text-stroke
property is currently implemented in all major browsers, browsers behave differently when encountering COLRv0 format fonts.Safari can add strokes to COLRv0 format fonts, but Firefox and Chrome do not, and the COLRv0 format is so widely used today that we need to standardize it to avoid compatibility differences. Test case
@litherum says:
With the COLRv1 format coming to OpenType 1.9 and released in Chrome, we also need to clarify how this property interacts with SVG tables and COLRv1.
@drott @jfkthame
The text was updated successfully, but these errors were encountered: