Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Last active April 5, 2026 18:55
Show Gist options
  • Select an option

  • Save jpluimers/fbd7a3d199c53c877e0661ba4a637f5d to your computer and use it in GitHub Desktop.

Select an option

Save jpluimers/fbd7a3d199c53c877e0661ba4a637f5d to your computer and use it in GitHub Desktop.
Enabling the `tnum` feature of a font: `style="font-variant-numeric: tabular-nums";` and `style="font-feature-settings: 'tnum'";`
<!DOCTYPE html>
<html>
<head>
<title>Enabling the `tnum` feature of a font: `style="font-variant-numeric: tabular-nums";` and `style="font-feature-settings: 'tnum'";`</title>
</head>
<body>
<table
style="font-family: system-ui, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';"
rules="all">
<caption>Enabling the <code>tnum</code> feature of a font</caption>
<thead valign="top">
<tr>
<th>Default</th>
<th>Modern: <code>style="font-variant-numeric: tabular-nums";</code></th>
<th>Classic: <code>style="font-feature-settings: 'tnum'";</code></th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td>
111222333444555<br/>
666777888999000
</td>
<td style="font-variant-numeric: tabular-nums" ;>
111222333444555<br/>
666777888999000
</td>
<td style="font-feature-settings: 'tnum'" ;>
111222333444555<br/>
666777888999000
</td>
</tr>
</tbody>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment