vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.54k stars 528 forks source link

Fonts specified in px, not point. #1866

Open garyemiller opened 6 months ago

garyemiller commented 6 months ago

bCNC specifies font size in px, not pt.

For example:

./pendant/camera.html: font-size: 22px;

./pendant/index.html: font-size: 18px;

The problem is that on high DPI screen, the font will be too small to read.

Font size should be specified in points. At 96 DPI:

1 Pixel = (96/72) * Point

So an 18px font is 13.5 pts. Easy to read.

But at 192 DPI:

1 Pixel = (192/72) * Point

So the font is 6.7pt. Pretty hard to read.

If you change all the px to pt in the code then DPI is automagically handled.

That is why bCNC looks like this to me:

screen