2da029b28f
Prepare data to Skia's linear gradient shader so that the extrema are [0, 1] when the data in the font does not have them at these positions. This is required for the shader to correctly compute repeat modes. Add the test font from the Google color fonts repo [1] with stops at [0, 1], [0.2, 0.8], [0, 1.5], [0.5, 1.5] respectively, compare[2]. [1] https://github.com/googlefonts/color-fonts/blob/main/fonts/more_samples-glyf_colr_1.ttf [2] https://github.com/googlefonts/colr-gradients-spec/issues/281#issuecomment-828346428 Bug: skia:11922 Change-Id: Ic62a26911fa177af35ca16f183b5985d884237a5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/405717 Commit-Queue: Dominik Röttsches <drott@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> |
||
---|---|---|
.. | ||
abc | ||
svg | ||
7630.otf | ||
ahem.ttf | ||
cbdt.ttf | ||
colr.ttf | ||
colrv1_samples.ttf | ||
Distortable.ttf | ||
Em.ttf | ||
fonts.xml | ||
Funkster.ttf | ||
HangingS.ttf | ||
hintgasp.ttf | ||
more_samples-glyf_colr_1.ttf | ||
planetcbdt.ttf | ||
planetcolr.ttf | ||
planetsbix.ttf | ||
ReallyBigA.ttf | ||
Roboto2-Regular_NoEmbed.ttf | ||
Roboto2-Regular.pfa | ||
Roboto2-Regular.pfb | ||
Roboto-Regular.ttf | ||
sbix.ttf | ||
SpiderSymbol.ttf | ||
Stroking.otf | ||
Stroking.ttf | ||
test.ttc | ||
Variable.ttf | ||
VaryAlongQuads.ttf |