saving custom fonts
With variations and axes, the font chooser dialog now lets you create your own personalized font. It would be very nice if we could save the font with a custom style name, and have it show up in the font list the next time.
The basic idea is to write a small fontconfig snipplet to ~/.config/fontconfig/conf.d. Unfortunately, we can't add new fonts to the overall font configuration this way - the custom style will be matched correctly by fc-match, but fc-list will not show it, and neither will pango_font_family_list_faces.
To work around this fontconfig limitation, we'll have to handle the saving part inside pango, and teach PangoFcFontmap to inject the saved fonts into its family/face listing.
Suggested api:
gboolean pango_font_map_save_font (PangoFontMap *map,
PangoFontDescription *desc,
const char *style_name,
GError **error);
gboolean pango_font_map_remove_font (PangoFontMap *map,
PangoFontDescription *desc,
GError **error);
The remove api could possibly be squeezed into the save one, using %NULL for the style name.