rowanwins / leaflet-easyPrint

A leaflet plugin which adds an icon to print the map - Demo @ http://rowanwins.github.io/leaflet-easyPrint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Font problem in Google Chrome

MatheusSouzaCC opened this issue · comments

Hi,
I'm having trouble printing my map in Google Chrome. All the texts from popups and legends are being printed in a messy way. Just like this:
legend
I have noticed that just before printing, the font of the texts changes and after that it becomes normal again.
You can see it happening in the demo page:
error
Output:
output
If i use hideControlContainer: false the icons of zoom buttons are printed with problems too.
In Firefox it works fine. I'm using Chrome version 67.0.3396.99.
Do you have any workaround ? Thank you.
Sorry for my bad English and congratulations to the good job.

It seems like it's a problem with dom-to-image: tsayen/dom-to-image#225
Maybe I can use another version of dom-to-image or use the temp fix in the link above. How can I do that ?

For those who have the same problem:
Until dom-to-image developers fix that issue you can use the temp fix described here tsayen/dom-to-image#225 in the comments.
Modify dom-to-image code, generate leaflet-easyPrint bundle again and your good to go for now.