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)

defect

Tracking

(Not tracked)

People

(Reporter: fvsch, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Steps to reproduce on macOS + Nightly:

  1. Open a new tab (about:newtab), and inspect the body node
  2. Open Inspector to the Fonts tab
  3. 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.

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)
Blocks: 1280059
Severity: normal → S3
Component: Inspector: Fonts → Inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: