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

Fonts specified in px, not point. #1866

Open
garyemiller opened this issue Dec 22, 2023 · 0 comments
Open

Fonts specified in px, not point. #1866

garyemiller opened this issue Dec 22, 2023 · 0 comments

Comments

@garyemiller
Copy link

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

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