Last active
February 8, 2021 23:26
-
-
Save andy0130tw/cd7c026f63215932497d54898defcf99 to your computer and use it in GitHub Desktop.
Turn on an OpenType feature for Fira Sans through fontconfig for tabular figures, making it a nicer UI font. Perfect for Pop!_OS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="font"> | |
<test qual="any" name="family"> | |
<string>Fira Sans</string> | |
</test> | |
<edit name="fontfeatures" mode="prepend"> | |
<string>tnum</string> | |
</edit> | |
</match> | |
</fontconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A solution to this issue (for Linux).
Preview through LibreOffice with OpenType feature supported. It does not apply "tabular figures" (
tnum
) at first and adding a suffix ":tnum
" turns on that feature.This fixes the widths for some fields that contain only changing digits (like clocks, system stats, etc.), making them much less disturbing.