Open
Bug 1578022
Opened 5 years ago
Updated 3 years ago
Round fractional Weight values from font instances (e.g. with macOS San Francisco)
Categories
(DevTools :: Inspector, defect, P3)
DevTools
Inspector
Tracking
(Not tracked)
NEW
People
(Reporter: fvsch, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
63.77 KB,
image/png
|
Details |
Steps to reproduce on macOS + Nightly:
- Open a new tab (about:newtab), and inspect the body node
- Open Inspector to the Fonts tab
- In the "Instance" select, pick one of "Ultralight", "Thin", "Light", "Medium", "Semibold", "Bold" or "Heavy"
Result:
- The Weight gets set to a decimal value, for instance for "Medium":
508.1046
.
Expected result:
- The weight gets set to an integer value between 1 and 1000 (included).
If we want to keep a fractional value for accuracy, we should perhaps limit the precision to something like 2 decimals. In my screenshot you can see a value that looks like: 590.979125976563
; this doesn't fit in the text input, which ends up showing 590.9791
in LTR and 5976563
in RTL.
Reporter | ||
Updated•5 years ago
|
Summary: Picking some font instances of San Francisco (macOS) sets font weight to a buggy decimal value → Round fractional Weight values from font instances (e.g. with macOS San Francisco)
Priority: -- → P3
Assignee | ||
Updated•3 years ago
|
Component: Inspector: Fonts → Inspector
You need to log in
before you can comment on or make changes to this bug.
Description
•