Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated numbers for exact sizes for the readme page #26

Open
Sunspark-007 opened this issue Jun 11, 2023 · 0 comments
Open

Updated numbers for exact sizes for the readme page #26

Sunspark-007 opened this issue Jun 11, 2023 · 0 comments

Comments

@Sunspark-007
Copy link

Sunspark-007 commented Jun 11, 2023

Hi, to make it easier for people to know how to determine the correct pt size perhaps the text provided below could be added.

X.org is using a dpi of 96 at 100% scale. If someone is using a logical dpi of 144 (150% scale) then the correct pt size is pt / logical dpi's scale %:

Spleen 6x12: 9 Pt (12 pixels) = 9/150%=6 pt, 9/200%=4.5 pt
Spleen 8x16: 12 Pt (16 pixels) = 12/150%=8 pt, 12/200%=6 pt
Spleen 12x24: 18 Pt (24 pixels) = 18/150%=12 pt, 18/200%=9 pt
Spleen 16x32: 24 Pt (32 pixels) = 24/150%=16 pt, 24/200%=12 pt
Spleen 32x64: 48 Pt (64 pixels) = 48/150%=32 pt, 48/200%=24 pt

The general formula is pt size = font pixels / logical dpi * 72. So, 32 pixels/144 dpi*72=16 pt

Scaling % | DPI
100% | 96
125% | 120
150% | 144
175% | 168
200% | 192
225% | 216
250% | 240
300% | 288
400% | 384
500% | 480

64/384*72=12 pt for the 32x64 font if you were using 400% scaling on your fancy high resolution display.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant