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

前端 未结 6 1843
情歌与酒
情歌与酒 2021-01-13 11:39

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

6条回答
  •  温柔的废话
    2021-01-13 12:30

    If you aren't writing proprietary software, or any other licensed software that's incompatible with GPL, you could try looking at the code to xlsfonts to see how to query the font server. (The font server could be X itself, but it won't matter.)

提交回复
热议问题