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:
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:
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.