Closed Bug 1907191 Opened 2 months ago Closed 2 months ago

Date/time column does not use `tnum` feature of a font like Inter

Categories

(Thunderbird :: Theme, defect)

Thunderbird 115
defect

Tracking

(thunderbird_esr128 affected, thunderbird129 affected)

RESOLVED FIXED
130 Branch
Tracking Status
thunderbird_esr128 --- affected
thunderbird129 --- affected

People

(Reporter: pmenzel+bugzilla.mozilla.org, Assigned: jfkthame)

Details

Attachments

(3 files)

Attached image Sample screenshot

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0

Steps to reproduce:

On Debian sid/unstable, update gsettings-desktop-schemas to 47~alpha-1, which changes the default font to Inter.

Actual results:

The alignment in the date column looks bad when there is a 1 in there.

Expected results:

The alignment should be better. Sebastian Keller mentioned a solution:

that can be fixed on the application side by using the tnum feature of the font for times/dates

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7772#note_2163599

Inter isn't the only potential UI font with non-fixed-space digits; e.g. on macOS, the UI font also has proportionally-spaced digits, and so the date column shows similar variation in width. Whether this is a problem is basically an aesthetic issue, I guess. It's not like these are columns of numbers that are to be added up, where the variable spacing could introduce a risk of mis-reading, but it still might be considered tidier to have the dates align consistently.

So we should perhaps consider applying font-variant-numeric: tabular-nums here, if we do want them to line up more neatly.

It looks like this would be applicable to several columns: at least Received / Date / Size / Order received.

This compares Thunderbird's current display of the Date column (left) with the result of adding font-variant-numeric: tabular-nums (right) on macOS.

Assignee: nobody → jfkthame
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

The above is a strawman patch that should address this issue, assuming it's something we want to change; note that it is currently not tested in an actual build (as I don't have one set up locally), but poking with devtools suggests this should work.

(I don't know if this is at all the correct place to do this; please feel free to steal the patch and adapt it if there's a better/more appropriate way to do this within the thunderbird code.)

Pushed by jkew@mozilla.com:
https://hg.mozilla.org/comm-central/rev/d2dddd76df54
Use tabular numerals in date/numeric columns of the Thunderbird UI. r=Paenglab

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Component: Untriaged → Theme
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: