How to get a list of installed True Type Fonts on Linux using C or C++?

12,381

I think fontconfig is the right way to do it. Take a look on the wikipedia article or the fontconfig hompage.

Share:
12,381
KPexEA
Author by

KPexEA

Video game programmer, mainly c, c++ First programmed on the Commodore Pet back in 1981 Last project Zombie Apocalypse: Never die alone Some of my memorable projects include: Test Drive (Accolade, c64) Stunts (Br0derbund, pc) Fifa International Soccer (EA, Sega Genesis) Platforms I have worked on: Commodore Pet, Vic 20, C64, Apple ][, Atari 800XL, PC, Linux, Sega Genesis, Sega CD, Sega 32x, Nintendo SNES, N64, PlayStation, PS2, PS3, Xbox, X360, STM32-Primer2, GP2X-Wiz, Chrome Native-Client

Updated on June 07, 2022

Comments

  • KPexEA
    KPexEA almost 2 years

    How can my app get a list of the True Type Fonts that are available on Linux.

    Is there a standard directory where they are stored across different distributions? Or some other standard way to locate them?

  • barefootliam
    barefootliam almost 3 years
    xlsfonts uses the old deprecated server-side X fonts, not cient-side that Pango uses.