Find-All-Installed-Fonts

¿Alguna vez te has preguntado qué fuentes están instaladas en tu sistema Linux? Conozco una forma rápida de encontrar todas las fuentes instaladas en Linux desde la línea de comandos. El comando fc-list te ayuda a listar todas las fuentes y estilos disponibles en el sistema para las aplicaciones que utilizan fontconfig. Utilizando fc-list, también podemos averiguar si una fuente de idioma en particular está instalada o no. En este breve tutorial, voy a mostrarte cómo enumerar todas las fuentes instaladas y también cómo listar las fuentes instaladas para un idioma en particular en sistemas similares a Unix.

Para enumerar todas las fuentes instaladas que están disponibles en su tistema linux, ejecuta:

fc-list

El resultado sería:

/usr/share/fonts/TTF/Merriweather-Black.ttf: Merriweather,Merriweather Black:style=Black,Regular
/usr/share/fonts/noto/NotoSansTaiLe-Regular.ttf: Noto Sans Tai Le:style=Regular
/usr/share/fonts/noto/NotoSansGothic-Regular.ttf: Noto Sans Gothic:style=Regular
/usr/share/fonts/TTF/akruti1b.ttf: AkrutiTml1:style=Bold
/usr/share/fonts/mathjax/HTML-CSS/Neo-Euler/woff/NeoEulerMathJax_Normal-Regular.woff: Neo Euler,Neo Euler MathJax Normal:style=Medium,Regular
[...]

Para enumerar si una fuente particular, por ejemplo,  “DejaVu Sans”, está instalada o no, ejecuta el siguiente comando:

fc-list | grep "DejaVu Sans"

Salida de ejemplo:

/usr/share/fonts/TTF/DejaVuSansCondensed.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
/usr/share/fonts/TTF/DejaVuSans-BoldOblique.ttf: DejaVu Sans:style=Bold Oblique
/usr/share/fonts/TTF/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/TTF/DejaVuSansCondensed-Oblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
/usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf: DejaVu Sans Mono:style=Oblique
/usr/share/fonts/TTF/DejaVuSansCondensed-BoldOblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
/usr/share/fonts/TTF/DejaVuSans-ExtraLight.ttf: DejaVu Sans,DejaVu Sans Light:style=ExtraLight
/usr/share/fonts/TTF/DejaVuSans-Oblique.ttf: DejaVu Sans:style=Oblique
/usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
/usr/share/fonts/TTF/DejaVuSansCondensed-Bold.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
/usr/share/fonts/TTF/DejaVuSansMono-BoldOblique.ttf: DejaVu Sans Mono:style=Bold Oblique
/usr/share/fonts/TTF/DejaVuSans.ttf: DejaVu Sans:style=Book
/usr/share/fonts/TTF/DejaVuSans-Bold.ttf: DejaVu Sans:style=Bold

Si deseas listar todas las fuentes truetype en tu disco, puedes utilizar el comando find. Ten en cuenta que tardará un tiempo en completarse según el tamaño del disco duro y el número de fuentes disponibles en tu sistema.

sudo find / -type f -name "*.ttf"

Nota: Si fc-list no se encuentra en tu sistema, instala el paquete fontconfig. Por ejemplo, para instalar fontconfig en Ubuntu, ejecuta:

sudo apt-get install fontconfig

El comando fc-list también permite listar las fuentes instaladas para un idioma en particular. Para ello, debe mencionar el código de idioma correcto con el comando fc-list como se muestra a continuación.

Para listar las fuentes instaladas para el idioma Tamil, ejecuta el siguiente comando:

fc-list :lang=ta

La salida sería:

/usr/share/fonts/TTF/akruti1b.ttf: AkrutiTml1:style=Bold
/usr/share/fonts/TTF/akruti2b.ttf: AkrutiTml2:style=Bold
/usr/share/fonts/TTF/akruti1.ttf: AkrutiTml1:style=Normal
/usr/share/fonts/TTF/akruti2.ttf: AkrutiTml2:style=Normal
/usr/share/fonts/noto/NotoSerifTamil-Regular.ttf: Noto Serif Tamil:style=Regular
/usr/share/fonts/noto/NotoSansTamil-Bold.ttf: Noto Sans Tamil:style=Bold
/usr/share/fonts/noto/NotoSansTamilUI-Regular.ttf: Noto Sans Tamil UI:style=Regular
/usr/share/fonts/TTF/DroidSansTamil-Bold.ttf: Droid Sans Tamil:style=Bold
/usr/share/fonts/TTF/TAMu_Kadampari.ttf: TAMu_Kadambri:style=Regular
/usr/share/fonts/TTF/TAMu_Kalyani.ttf: TAMu_Kalyani:style=Regular
/usr/share/fonts/TTF/DroidSansTamil-Regular.ttf: Droid Sans Tamil:style=Regular
/usr/share/fonts/noto/NotoSansTamil-Regular.ttf: Noto Sans Tamil:style=Regular
/usr/share/fonts/TTF/TSCu_Comic.ttf: TSCu_Comic:style=Normal
/usr/share/fonts/TTF/TAMu_Maduram.ttf: TAMu_Maduram:style=Normal
/usr/share/fonts/noto/NotoSansTamilUI-Bold.ttf: Noto Sans Tamil UI:style=Bold
/usr/share/fonts/TTF/TSCu_Paranar.ttf: TSCu_Paranar:style=Regular
/usr/share/fonts/TTF/TSCu_Times.ttf: TSCu_Times:style=Normal
/usr/share/fonts/TTF/TSCu_paranarb.ttf: TSCu_Paranar:style=Bold
/usr/share/fonts/noto/NotoSerifTamil-Bold.ttf: Noto Serif Tamil:style=Bold

O bien, utiliza el siguiente comando para listar las fuentes o fuentes Tamil instaladas que admitan el glifo Tamil:

fc-list -f '%{file}\n' :lang=ta

Para más detalles, consulta las páginas de manual:

man fc-list

 

Fuente: Original | maslinux

¿Quién está en línea?

Hay 657 invitados y ningún miembro en línea