tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.28k stars 1.68k forks source link

fontsize invalid #235

Open kiscall opened 6 years ago

kiscall commented 6 years ago

fontsize invalid, look: image

Symyon commented 6 years ago

Is that Chrome? I have the same issues, any styling to a text is not picked up by the image resterizedby dom-to-image in Chrome. Firefox works though.

That is recent as it was working in Chrome before, maybe a Chrome update. Can't figure it out yet.

kiscall commented 6 years ago

@Symyon you can try this package: dom-to-image-chrome-fix

Symyon commented 6 years ago

THx @kiscall I am using this one: https://github.com/MichalBryxi/dom-to-image as it seems to have incorporated a couple of fixes.