Abnormal letter spacing in Chrome / Chromium
See original GitHub issueWhen calling:
html2canvas(document.getElementsByClassName('console'), {
onrendered: function(canvas) {
var img = canvas.toDataURL()
var iframe = '<iframe src="' + img + '" frameborder="0" style="border:0; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%;" allowfullscreen></iframe>'
var x = window.open();
x.document.open();
x.document.write(iframe);
x.document.close();
},
letterRendering: true,
});
Both with or without letterRendering
, this is what Chrome outputs:
When the output in Firefox is:
Any specific reason why it renders it like that?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:26 (3 by maintainers)
Top Results From Across the Web
380298 - Fonts are suddenly larger and letter spacing uneven
Most text is much larger (especially address bar), and letter spacing is incredibly uneven in proportional fonts, with some letters being ...
Read more >Change the spaces between text - Microsoft Support
Change spacing between characters, kern fonts, stretch or scale text, and set line spacing.
Read more >font character spacing issue - Google Chrome Community
I am using a Chromebook and I am having a problem with font character spacing. The spacing is fine on webpages but the...
Read more >The best web browsers for 2022 - Digital Trends
We pitted Chrome, Firefox, Opera, and Microsoft Edge against one another ... rewrote Edge using the open-source Chromium web browser engine.
Read more >insufficient disk space for mega running in chrome
Now most of the disk is free versus having zero disk space …. Whether you're running the Teams desktop app or the Teams...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have fixed this also by going to the div I want to screenshot and then I set the "
font-variant: normal;
" this has worked for me hope it helps .I have found a workaround for the matter (and it’s not very clean):
Note that the error I get on Firefox when using the second option is as follows: