giu icon indicating copy to clipboard operation
giu copied to clipboard

Font scaling for Linux

Open Necoro opened this issue 3 years ago • 1 comments

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.

Necoro avatar Jan 29 '22 17:01 Necoro

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!

AllenDang avatar Jan 30 '22 02:01 AllenDang