fcambus / spleen

Monospaced bitmap fonts
https://www.cambus.net/spleen-monospaced-bitmap-fonts/
BSD 2-Clause "Simplified" License
1.02k stars 33 forks source link

Updated numbers for exact sizes for the readme page #26

Open Sunspark-007 opened 1 year ago

Sunspark-007 commented 1 year ago

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 dpi72=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.