Html2canvas Chrome browser generated screenshots, the font size has become a small account.

html2canvas screenshots have all changed to the minimum font size. This problem has been found in chrome, and Firefox is normal.

guess that it may be a compatibility problem caused by upgrading the plug-in some time ago, and there is no problem with the graph generated at the beginning.

related codes

html2canvas (document.querySelector ("- sharpcavasContainer")) .then (canvas = > {

)
            const dataURL=canvas.toDataURL("image/png")
            --------------------------
            base64urlcavas

clipboard.png

clipboard.png chrome

clipboard.png logapilogc
clipboard.png

my side of the code is released to the production environment, there is no problem, it is not clear exactly why.


I have the same problem. Just set up font-variant: normal.
https://github.com/niklasvh/h.


post the output of html2canvas.

it is speculated that it may be the cause of dpr or a compatibility problem. You provide less information and cannot locate


clipboard.png

the information from logger.


font-variant: small-caps;

Menu