Open Gankra opened 7 years ago
We should block this on Pathfinder, as it would probably be a ton of work to implement otherwise, and it's not a huge tragedy to ship with this being provided via fallback. (iirc it's only "required" to make some mobile websites look right)
I had (probably naively) assumed this would be a case of using the platform font APIs slightly differently, and a small amount of work in WR. Do you think there's a lot more to it than that? Anyway, more than happy to drop the priority of this if we don't need it for MVP!
The platform font APIs don't support stroking. In Gecko we generate a path of the glyph and then stroke it with the usual 2D graphics API.
Ah, makes sense. Thanks.
So, I guess if/when we do want to support this, we could expand the blob interfaces to support stroking a path we extract from the font platform APIs?
https://bugzilla.mozilla.org/show_bug.cgi?id=1403262
https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke