I know setting PANGOCAIRO_BACKEND will change the backend. How can that be done programmatically? Is it as simple as setting a defining statement?
I could find the docs say to use pango_cairo_font_map_set_default(), so is it like getting the font map using pango_cairo_font_map_new_for_font_type () and calling pango_cairo_font_map_set_default() ? But I find pango_cairo_font_map_new_for_font_type returns of type PangoFontMap * while pango_cairo_font_map_set_default wants of type PangoCairoFontMap * how to convert it?
I want to use fontconfig backend on Windows for my small gtk app.
Thanks