-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Making numerals tabular #46
Comments
I just received a similar request by email, asking about tabular figures (tabular numbers):
I image that it can't be too hard to add those – but how? One way is to add them as an OpenType feature. There is an OpenType value for that, called 'tnum'. There is a CSS property that allows to access that feature in webfonts (source: MDN): /* enable tabular (monospaced) figures */
td.tabular { font-feature-settings: "tnum"; } According to MDN, it's actually better to use the associated longhand property: /* enable tabular (monospaced) figures */
td.tabular { font-variant-numeric: tabular-nums; } How to create the tabular-nums in FontForge?Great question... There is some documentation here: https://fontforge.github.io/gposgsub.html It says the following about the "single adjustment" subtable inside the GPOS table (GPOS stands for "Glyph Positioning"):
So it certainly can be done... Here is more information: https://fontforge.github.io/charinfo.html#position |
Didn't manage yet to get the Open Type table to work... In the meantime, I produced a workaround font, a Karmilla Tabular typeface with the numbers 0-9 with equal width. Direct link: https://github.com/ms-studio/karmilla/raw/tabular-num/fonts/ttf/Karmilla-Tabular.ttf You find this code in a special branch: https://github.com/ms-studio/karmilla/tree/tabular-num |
Last week I was talking to @YangQin20 here in NYC about this, and I asked Mirko Iverson to work on this - for Karla as she wanted the tabular figures for italics too - and this work can go into Karmilla for sure. |
While karla is excellent for web readability, the proportional numerals make it difficult to use them in a list. For example, when used in a list the numbers look vastly different. In the example shown below, at first glance it kind of looks like the numbers are in a somewhat random order, but they are listed sequentially. Would it be possible to convert numerals to tabular figures instead of proportional ones?
https://www.fonts.com/content/learning/fontology/level-3/numbers/proportional-vs-tabular-figures
The text was updated successfully, but these errors were encountered: