googlefonts / nanoemoji

A wee tool to build color fonts.
Apache License 2.0
241 stars 23 forks source link

spreadMethod for radial gradients not displaying correctly in Safari #281

Open drott opened 3 years ago

drott commented 3 years ago
<meta charset="utf-8">
<style>
@font-face {
font-family: samples;
src: url(samples-untouchedsvg.ttf);
}

* {
font-family: samples;
font-size: 64px;
}
</style>
linear_reflect linear_repeat radial_reflect radial_repeat

displays as

spreadmethod_radial

in Safari.

Compare FF:

spreadmethod_radial_ff

WebKit has a bug for spreadMethod for radial not being supported - it seems to be partially supported in their OT-SVG implementation, but the inner parts of the circle not being drawn correctly.

yisibl commented 3 years ago

Can you add the svg files?

anthrotype commented 3 years ago

they are here https://github.com/googlefonts/color-fonts/tree/main/font-srcs/samples

drott commented 3 years ago

https://github.com/googlefonts/color-fonts/blob/main/fonts/samples-untouchedsvg.ttf in particular for this example.

yisibl commented 3 years ago

Is there a way to fix this with nanoemoji?

anthrotype commented 2 years ago

Is there a way to fix this with nanoemoji?

I'm not sure.

I can confirm this is still happening with latest macOS 12.4 and Safari 15.5.

litherum commented 2 years ago

We're looking at this in rdar://98941222