I am trying to use an OpenType font with an alternate stylistic set to draw to a canvas element. I have it working with the standard html and fonts with
font-feature-settings: "ss01";
However, I also need to write the font to a canvas element. Is there anyway to do this? Or is this not supported?
As of right now you still can't, not with font-feature-settings
nor with font-variant
, and for that matter it's not even in the specification yet for Canvas.
But it might be someday: https://github.com/whatwg/html/issues/592
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With