pixels and fonts, Windows & Mac OS the same?

When I take GUI code developed on my Windows system and run it on a Mac, the spacing of the text in the GUI controls gets off, usually appearing to be too large for the space provided.

It seems to me (on casual experiments) that if I lower the font size by 1 (e.g., from 12 to 11), then the text will fit inside controls rendered on the Mac. Are there different ratios between the number of pixels for font sizes on Mac vs Windows?

I’m not sure about pixel sizes, but that was a big pain while developing Dodger Dog. Windows, Mac, and Linux all seem to be different. I’m going to make pings for my new game for text to combat that situation.

Yes. Mac used historically a different DPI for font size -> pixel mapping. Not sure what the situation is with 4K these days but I imagine it’s stayed the same, just doubled on both platforms.

Cas :slight_smile: