bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.39k stars 503 forks source link

Variable font properties are not respected #439

Open blueset opened 8 months ago

blueset commented 8 months ago

Expected Behavior

Text rendered should respect font-feature-settings and font-variation-settings from CSS.

Current Behavior

Text rendered disregards font-feature-settings and font-variation-settings from CSS.

Steps To Reproduce

https://codepen.io/blueset/pen/RwvrQyK

Additional Context

Above: rendered by browser Below: rendered by html-to-image

image

Your Environment

vivcat[bot] commented 8 months ago

👋 @blueset

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.