Default font sizes should be in 'points', not pixels due to varying DPI
Categories
(Thunderbird :: Preferences, defect)
Tracking
(Not tracked)
People
(Reporter: mozilla, Unassigned)
References
Details
Comment 2•15 years ago
|
||
Comment 5•15 years ago
|
||
Comment 8•12 years ago
|
||
Comment 10•11 years ago
|
||
Reporter | ||
Comment 11•11 years ago
|
||
Updated•6 years ago
|
Comment 12•4 years ago
|
||
What do you think, close per comment 10?
Comment 13•4 years ago
|
||
I think so. 8+ years ago, a thing like HiDPI wasn't on the radar. Apps have updated or adjusted to higher DPI / 4K/ 8K since then.
Reporter | ||
Comment 14•4 years ago
|
||
It wasn't, about'HiDPI', but that font sizes cannot, port-ably, be specified in pixels (how many pixels/inch are there on a printed page). Depite Gecko's adoption of the HTML2 standard of 96dpi, that is not a portable standard for font specification that would be independent of
OS, gui-lib, device, media, etc. It's also a dangerous adoption since the, still, widely used 'X-display' on linux + android uses dots/inch values that scale with the display (and not 96dpi). This will be more evident on display systems that support separate DPI values for different
displays -- i.e. if you have 1 display w/96dpi, and a handheld that operates as a separate display/controller for computer functions using a 200-300 dpi display, you are likely to get widely different text sizes if you rely on the Win/HTML2 value of 96dpi being constant.
Fonts in publishing apps on computer (like Adobe et al.) use 'Points' (adobe fixes their size at 72 Points/inch) or about 3/4 the size
of pixels used on windows or HTML2 (HTML2 redefined pixels to be 96dpi in HTML2). But that's not portable to other types of displays
Retina-based, X-windows based, printed paper). Specifying font sizes, in publishing apps where what you see on the screen should look
the same when printed on paper (WYSIWYG) is done most often in "Points".
That's still the case, because pixel still has a different meaning on different devices, OS's, and output media. A unit like the 'point' is
based on a fixed amount of ~72/inch. There is no widely accepted metric standard, however, allowing 'mm' to values of .1mm would
likely be satisfactory for German and Japanese standards.
If fonts could be specified in either Points or mm with input values allowing 1 digit to the right of the decimal point, that would be
both device+medium independent as well as internationally acceptable/useful. I would use 72Points/254mm for converting
between the two.
FWIW, if you want to use the HTML2 pixel size of 96dpi, you should annotate the input box as using HTML2's pixel definition of 96/dpi. That would be the easy way out, but it certainly would put Moz-apps' font specs in line with publishing apps to allow for similar units. I certainly wouldn't be against allowing a choice that included HTML2's pixel def (i.e. choice among the 3), but given that HTML2 is artificially defining a pixel @ 96/inch, I certainly wouldn't put that as the only choice.
Comment 15•4 years ago
|
||
Sorry, but I'm not an expert on this as I don't really know how Gecko handle this situation, especially after 8 years.
For what I'm aware, Thundebird properly uses the font size of the OS/Desktop of the user.
The main issue that I'm not sure is related to this bug is the inability for the user to scale up and down the font of the entire application independently without relying on add-ons.
In general, the base font size should come from the OS, and then the rest of our declared font size in CSS should be declared as rem
in order to scale accordingly to the root item.
Updated•2 years ago
|
Comment 16•1 year ago
|
||
This bug is not relevant anymore as the work on global font size and relative units have been implemented and more improvements are coming.
Description
•