Bug description

This reminds me of an old bug I opened a long time ago (for reference : https://github.com/apache/superset/issues/17633)

Font used in Table are not using "fixed width" - at least for numbers.

As a results, dates are misaligned.

Font reported by html console is : Inter, Helvetica, Arial

If I remove Inter, everything is fine, Hevletica is fine, just like in my previous issue patch :)

One may argue that Helvetica is not nice, but I favor usability over bells and whistle. (and my end users too). Once again, Inter seems to be a poor choice.

Also, "Table" view is not the only one affected by this, the default "Results" are also displayed using this font, but ok, I can admit it's not a "visualisation" item so it is not intended to be nice. (Well, if so, don't try to put a nice font in it to begin with ? :) )

Screenshot may not be the more obvious one, I can provide more.

How to reproduce the bug

Open any Table displaying some dates.

Screenshots/recordings

2024-02-22_10-44_1

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Firefox

Additional context

Seen this on 4.0.0-rc1 and on 3.0.0

Checklist

  • [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Comment From: rusackas

Yep, I remember that, and your argument still has merit. :)

Inter does have a fixed-width mode, but if I recall correctly, @geido looked into utilizing it and the issue was that in many tables, we cannot determine which columns should be fixed-width and which ones shouldn't be.

Perhaps there's a means to finally fix that... or perhaps the table SIP that @justinpark proposed to replace these with AG Grid will somehow resolve the problem (cc @kgabryje)

Or, perhaps @kasiazjc has a design opinion here, and we just don't need Inter anymore. Removing it would affect not just tables, but the code editor(s) as well, and probabl other components (like the timer in SQL Lab).

Comment From: rusackas

Anyone still interested in addressing this? It's gone silent for hundreds of days again, and I'm tempted to close it as stale/inactionable again. I'd love to see an improvement here, but it's not making it to the top of anyone's stack, it seems.

Comment From: squalou

Hi, personally, I'm still interested but can't help. What I do is I patch every new release, removing 'inter' from css.

Honestly, I don't understand how people use tables displayed in superset with default fronts. Maybe they don't :)

Comment From: rusackas

I'm currently unable to reproduce this. It looks like the font feature setting of tnum was enabled across the board at some point, and everything I can find (in open source Superset or on Preset) looks all squared up in Inter (and presumably other fonts). Thanks for your patience here... this one has been open... a little while.