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

Indicate that the font size is in px #1448

Open
Sunspark-007 opened this issue Dec 2, 2024 · 2 comments
Open

Indicate that the font size is in px #1448

Sunspark-007 opened this issue Dec 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Sunspark-007
Copy link

Hi, the font size selector currently allows for typing a value in, but it doesn't stick/save. As a result it's only 14,15,16, etc.

It would be nice to have the ability to use 3 digits of fractional entry.. for those using logical scaling. Right now 17x150% is 25.5, but if it allowed 17.333*150% then it would be 25.9995.

Being able to dial it in exactly (where possible) would help with bitmaps and hinting both.

@Sunspark-007 Sunspark-007 added the enhancement New feature or request label Dec 2, 2024
@johnfactotum
Copy link
Owner

WebKitGTK does not support fractional default font sizes. It only accepts integers, in pixel. See https://webkitgtk.org/reference/webkit2gtk/stable/property.Settings.default-font-size.html. (It seems this is the case for other browsers as well.)

If you need precise control over the font size, you can do it with the user stylesheet and set any CSS style you'd like.

@Sunspark-007 Sunspark-007 changed the title Allow fractional point sizing in the font size selector Indicate that the font size is in px Dec 4, 2024
@Sunspark-007
Copy link
Author

Thanks.. px is ok.. so 16 px is 12 pt at OS logical 150% but foliate scaling 100%. In a browser the zoom would be 67% to present the same. That 100% value is probably an assumption that the ppi is 96 when it's actually 144 logically.

I'm thinking cosmetically maybe it should display like this: Default font (px) this way it's obvious it's in pixels.

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

No branches or pull requests

2 participants