¿Le gustaría saber qué fuentes están instaladas en su sistema Linux? ¡Bien! Conozco una forma rápida de encontrar todas las fuentes instaladas en su sistema Linux desde la línea de comandos. La fc-list
Command le ayuda a enumerar todas las fuentes y estilos disponibles en el sistema para las aplicaciones que utilizan fontconfig.
Utilizando fc-list
, también podemos averiguar si una determinada fuente de idioma está instalada o no. En este breve tutorial, le mostraré cómo enumerar todas las fuentes instaladas y también enumerar las fuentes instaladas para un idioma específico en sistemas Linux y similares a Unix.
Tabla de Contenidos
Encuentre todas las fuentes instaladas desde la línea de comando en Linux
Para enumerar todas las fuentes instaladas disponibles en su sistema Linux, simplemente haga lo siguiente:
$ fc-list
Salida de muestra:
/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 es una fuente específica, diga «DejaVu Sans», instalado o no, ejecute el siguiente comando:
$ fc-list | grep "DejaVu Sans"
Salida de muestra:
/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 quieres enumerarlos todos Fuentes TrueType en tu disco duro puedes usar el find
Mando. Tenga en cuenta que puede llevar algún tiempo completarlo, según el tamaño de su disco duro y la cantidad de fuentes disponibles en su sistema.
$ sudo find / -type f -name "*.ttf"
Nota: Si fc-list
no se encuentra en su sistema, instale fontconfig Paquete. Por ejemplo, para instalar fontconfig en Ubuntu y sus derivados, ejecute:
$ sudo apt-get install fontconfig
Find Installed Fonts For A Particular Language
The fc-list
command also allows us to list installed fonts for a particular language.
To list installed font for a specific language, you to need to mention the correct language code with fc-list
command as shown below.
To list of installed fonts for Tamil language, run the following command:
$ fc-list :lang=ta
Salida de muestra:
/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 utilice el siguiente comando para enumerar las fuentes tamil instaladas o las fuentes que Glifo tamil:
$ fc-list -f '%filen' :lang=ta
Consulte las páginas de manual para obtener más información.
$ man fc-list
Conclusión
En este tutorial rápido, discutimos cómo enumerar todas las fuentes instaladas y cómo enumerar las fuentes instaladas para un idioma específico usando fc-list
Comando en sistemas Linux y Unix. Como puede ver, no es tan difícil encontrar las fuentes instaladas en un sistema Linux.