giu
giu copied to clipboard
Font scaling for Linux
Is there a reason, that font scaling is only done on Windows?
if runtime.GOOS == windows {
fontInfo.size *= Context.GetPlatform().GetContentScale()
}
I know that font scaling under Linux is a difficult thing because there are so many knobs involved. But I had to remove the if above to get reasonable font sizes. The other solution would've been to use huge default fontsizes like 32 or so.
The reason is i dont have any linux experience... Maybe you could help to make a PR for font and dpi scaling for linux? Many thanks!