Prevent Google Maps V3 loading Roboto font
Closed this issue · 5 comments
sanel commented
Hi,
I've noticed that, after map was shown, application font would be changed (this includes complete Vaadin view where map is shown). The cause looks like is due to Google Maps API loading Roboto font automatically as explained here [1].
For me, the fix was applying [2] js hack. Maybe there is a better way to handle this from addon or addong could call [2] automatically.
[1] https://stackoverflow.com/questions/25523806/google-maps-v3-prevent-api-from-loading-roboto-font
[2] https://stackoverflow.com/a/74852333
sanel commented
The same problem can be visible in demo [1]:
- page is loaded with normal fonts
- after map is shown, all fonts are now bold (Roboto font)
paodb commented
The problem seems reproducible only on Windows OS.
sanel commented
The same problem is on Linux (Slackware 15) with chrome-ungoogled 113 and latest firefox dev edition.
sanel commented
thanks!