You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After looking up the fontconfig manual, I find that you can generat a list of available font family in you system by using the following command:
fc-list -f "%{family[0]}\n" | sort |uniq
In my CentOS system, it generates the following output:
AR PL UMing CN
AR PL UMing HK
AR PL UMing TW
AR PL UMing TW MBE
Abyssinica SIL
Caladea
Cantarell
Carlito
Century Schoolbook L
Clean
DejaVu Sans
DejaVu Sans Mono
DejaVu Serif
Dingbats
Fixed
FreeMono
FreeSans
FreeSerif
Jomolhari
Khmer OS
Khmer OS Content
Khmer OS System
LKLUG
Liberation Mono
Liberation Sans
Liberation Serif
Lohit Assamese
Lohit Bengali
Lohit Devanagari
Lohit Gujarati
Lohit Kannada
Lohit Malayalam
Lohit Marathi
Lohit Nepali
Lohit Oriya
Lohit Punjabi
Lohit Tamil
Lohit Telugu
Madan2
Meera
NanumGothic
Nimbus Mono L
Nimbus Roman No9 L
Nimbus Sans L
Nuosu SIL
Open Sans
OpenSymbol
Overpass
PT Sans
PT Sans Narrow
Padauk
PakType Naskh Basic
STIX
Source Han Serif SC
Standard Symbols L
URW Bookman L
URW Chancery L
URW Gothic L
URW Palladio L
Utopia
VL Gothic
Waree
WenQuanYi Micro Hei
WenQuanYi Micro Hei Mono
WenQuanYi Zen Hei
WenQuanYi Zen Hei Mono
WenQuanYi Zen Hei Sharp
Then you don't need cut any more.
The text was updated successfully, but these errors were encountered:
The purpose of cut in the previous iteration of the fc-list command was to remove the commas and following portions of the font family name (localized name perhaps?).
Without it, we get output such as:
```
$ fc-list --format="%{family}\n" | sort | uniq | tail -n 1
WenQuanYi Micro Hei,文泉驛微米黑,文泉驿微米黑
```
With the field reference ```[0]``` we get:
```
$ fc-list --format="%{family[0]}\n" | sort | uniq | tail -n 1
WenQuanYi Micro Hei Mono
```
I missed this minor but important difference when first reading @jdhao's suggestion in issue #1.
After looking up the fontconfig manual, I find that you can generat a list of available font family in you system by using the following command:
In my CentOS system, it generates the following output:
Then you don't need cut any more.
The text was updated successfully, but these errors were encountered: