Maximum font size user setting
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
People
(Reporter: mozilla, Unassigned)
Details
Reporter | ||
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Reporter | ||
Comment 7•8 years ago
|
||
Reporter | ||
Comment 8•8 years ago
|
||
Reporter | ||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Updated•7 years ago
|
Reporter | ||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Comment 15•6 years ago
|
||
It seems there already is a maximum font size setting, although it is quite large. I implemented a zoom rule on a test page, to allow user adjustment of the font, and for kicks I tried really big numbers, and eventually the font quit increasing in size, although the spacing kept going up. Is this documented anywhere?
Reporter | ||
Comment 16•6 years ago
|
||
(In reply to Glenn Linderman from comment #15)
It seems there already is a maximum font size setting, although it is quite large. I implemented a zoom rule on a test page, to allow user adjustment of the font, and for kicks I tried really big numbers, and eventually the font quit increasing in size, although the spacing kept going up. Is this documented anywhere?
First time I hear about it, can you share a source file please?
Comment 17•6 years ago
|
||
There's a max size imposed in gfx code: https://searchfox.org/mozilla-central/rev/465dbfe030dfec7756b9b523029e90d48dd5ecce/gfx/thebes/gfxFont.h#56
(That's in device pixels, so the CSS px size it represents would depend on the devicePixelRatio of the screen; e.g. on a Retina display it'd be 1000px.)
Comment 18•6 years ago
|
||
Interesting. I couldn't find references to documentation, so thanks for the source code reference. I wonder if there is some particular reason for the limit, or if it is just arbitrary? I mean, if someone wants to have a web page for admiring a single glyph on a 4K screen, why stop them?
Comment 19•6 years ago
|
||
I suspect this was originally done because one or more of the various platform font back-ends couldn't reliably handle really enormous glyphs -- I seem to remember there was also some comment or code related to this in cairo somewhere. There may have been cases where specifying huge font sizes could be used to trigger a crash or potential security exploit deep in the font rasterizer, for example.
I wouldn't be very surprised to learn that whatever originally prompted the limit is no longer an issue, and it could safely be removed. We'd need to look into the background more carefully before considering something like that, though.
Comment 20•6 years ago
|
||
This would be useful.
I have an astigmatism, and by default, most text is uncomfortably small for a lit screen, and headers are uncomfortably large. I've been using user css to force it all to the same size, but that is hard to adjust in an emergency.
The standard solution for small text is full-page zoom, which just worsens the problem with big text.
Comment 21•4 years ago
|
||
If we use user css to set font sizes, we can get everything to a single readable size, but a lot of icons break. If we rely on about:preferences, then a lot of headers are just uncomfortably large.
Reporter | ||
Comment 22•3 years ago
|
||
For anyone who considers implementing this
Does anyone consider implementing this? ;)
Updated•2 years ago
|
Description
•