I have no clue what the author is looking for. Querying fonts with GTK (and all other GUI toolkits that use Pango, which is extremely widespread) is simple: https://docs.gtk.org/Pango/class.FontMap.html
If you want to find a font that contains a particular character, you can just ask. For example, if you want to find a font that can render U+1F511 🔑 KEY:
$ fc-list ":charset=1F511"
/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf: Noto Color Emoji:style=Regular
I have no clue what the author is looking for. Querying fonts with GTK (and all other GUI toolkits that use Pango, which is extremely widespread) is simple: https://docs.gtk.org/Pango/class.FontMap.html
Here is a real life Rust application that chooses a monospace font dynamically at runtime by intersecting a preference list with what’s available on the system: https://github.com/BenjaminRi/Sherlog/blob/0bd8ac46b1ec3c2628664cbdba3758bd5ecc2906/src/main.rs#L716
I don’t want to use pango.
If you want to find a font that contains a particular character, you can just ask. For example, if you want to find a font that can render U+1F511 🔑 KEY:
thanks! adding it to my article