bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Load specified fonts only instead of loading hundreds of fonts

myszkin81 opened this issue · comments

Current state

html-to-image now calls for about 150 fonts on the first call, ten some more for ther second call. I only need 2 fonts to be
downloaded.

Expected Behavior

I would like to specify the fonts I need and not to download any more fonts.

Possible Solution

Defining needed fonts in font.config file

commented

👋 @myszkin81

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.

I have the same problem, it loads a lot of font assets and makes project very slow and laggy.

Same problem here as well.