design-system
design-system copied to clipboard
Rich tables are not properly drawn with Equinor monospace font
Describe the bug
We use https://github.com/Textualize/rich to improve the terminal output of our Radix jobs. However, the Equinor monospace font does not appear to draw these correctly (incorrect spacing both horizontally and vertically).
Radix log console output with EquinorMono font
Radix log console output with Fira Code font
Steps to reproduce the bug
- Draw the following with the Equinor monospace font
╭────────────────┬────────────────────────────┬──────────────────┬────────────────────────────╮
│ Current time │ 2023-10-09 08:01:48.801789 │ │ │
│ Last read time │ 2023-10-09 08:00:54.550400 │ Last write time │ 2023-10-09 08:00:54.605959 │
│ CPU usage │ 1.3% │ Memory usage │ 255 MB │
│ Merge state │ WAITING_FOR_PRIMARY │ │ │
│ Ingress time │ 928s │ Input dataframes │ 12 │
│ App eval time │ 0.373s │ Output rows │ 12 │
│ Egress time │ 15.7s │ │ │
╰────────────────┴────────────────────────────┴──────────────────┴────────────────────────────╯
Expected behavior
The table should be properly rendered with aligned/connected lines, such as in the Fira Code example.
Specifications
- Font is https://cdn.eds.equinor.com/font/EquinorMono-Regular.woff2
- Browser: Chrome 117.0.5938.149
- OS: macOS Ventura 13.5
Additional context
Add any other context or screenshots about the bug. An example in CodeSandbox is very helpful
Sorry but we can't prioritise this issue right now.