Fonts smaller on Windows
d.healey last edited by d.healey
MacOS & GNU/Linux
@Christoph-Hart I remember a long time ago you added something to take care of this kind of thing. Was it only for the global font though? I'm using
g.setFont()a lot in my paint routines and this is where I'm noticing this.
dustbro last edited by dustbro
@d-healey I think all fonts scale differently on each system. Win seems different than mac/linux.
I resorted to use:
const var Font_1_Scale = (Engine.getOS() == "WIN" ? 18 : 16);
and then use that variable to set the font size
orange last edited by orange
@d-healey Some fonts are multiligual and since they are also including non-Latin char sets they use wider metrics. This may end up with different scaling on the different Operating systems. I see that issue especially on the Devanagari type fonts which means they may need to have larger vertical metrics than ordinary Latin fonts, due to stacking conjuncts and mark positioning. This issue also happens on the different web browsers too.
Maybe getting the Latin-only versions of the fonts (if you use only Latin chars in your plugin) could help but I am not sure if it works for every font.
If it is a Google font, you can get Latin-only versions from the Google Webfont Helper here: https://google-webfonts-helper.herokuapp.com/fonts/poppins?subsets=latin