Trovare tutti i fonts installati su Linux da riga di comando

Mattepuffo's logo
Trovare tutti i fonts installati su Linux da riga di comando

Trovare tutti i fonts installati su Linux da riga di comando

Avevo necessità di capire quali fonts fossero installati sul mio server Linux, al quale accedo tramite SSH.

Quindi avevo bisogno di comando da terminale.

Ho scoperto che esiste e si chiama fc-list!

Sulla mia Debian era già presente, come anche in Arch Linux.

Sennò dovete installare il pacchetto fontconfig.

Il comando di base è questo:

$ fc-list
/usr/share/fonts/gsfonts/D050000L.otf: D050000L:style=Regular
/usr/share/fonts/misc/5x7.pcf.gz: Misc Fixed:style=Regular
/usr/share/fonts/gsfonts/URWBookman-DemiItalic.otf: URW Bookman:style=Demi Italic
/usr/share/fonts/TTF/DejaVuSerifCondensed.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed,Book
/usr/share/fonts/OTF/SyrCOMMalankara.otf: Serto Malankara:style=Regular
/usr/share/fonts/gsfonts/NimbusMonoPS-BoldItalic.otf: Nimbus Mono PS:style=Bold Italic
/usr/share/fonts/gsfonts/URWBookman-LightItalic.otf: URW Bookman:style=Light Italic
/usr/share/fonts/OTF/SyrCOMJerusalemItalic.otf: Serto Jerusalem:style=Italic
............

Ovviamente possiamo usare grep per cercare dei font in particolare:

$ fc-list | grep "IL_VOSTRO_FONT"

Enjoy!


Condividi

Commentami!