How to find a font by its name from command line
![How to find a font by its name from command line](/content/images/size/w2000/2023/06/11754856_4814088.jpg)
To find where the font files are stored in the system, use the following command line
fc-list | grep <font-name>
For example:
# fc-list | grep '游明朝'
/home/transang/.local/share/fonts/Mincho/Yu Mincho Demibold.ttf: Yu Mincho,游明朝,Yu Mincho Demibold,游明朝 Demibold:style=Demibold,Bold
/home/transang/.local/share/fonts/Mincho/Yu Mincho Regular.ttf: Yu Mincho,游明朝:style=Regular
/home/transang/.local/share/fonts/Mincho/Yu Mincho Light.ttf: Yu Mincho,游明朝,Yu Mincho Light,游明朝 Light:style=Light,Regular
To convert a ttf
font to woff
, use
npx ttf2woff font.ttf font.woff
![Buy Me A Coffee](https://cdn.buymeacoffee.com/buttons/v2/default-red.png)