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

前端 未结 6 1810
情歌与酒
情歌与酒 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:32

    If you're using a high-level toolkit like GTK+ or Qt, there's probably a better function to do it for you; if not, fontconfig is the de-facto way to do it.

提交回复
热议问题