Question

I am trying to convert a Pango Font Description returned from a Font Chooser Dialog in GTK 3 to a string, however the C function:
pango_font_description_to_string()
Does not work, as it is a different language. I have scoured the web in search of an answer, however it has been fruitless. Does anyone have any idea of how to convert a Pango font description to a String?

Was it helpful?

Solution

The documentation should have everything you need to know.

For getting the string representation, it is my_description.to_string(), for the reverse (description from string), it should be

var my_description = FontDescription.from_string("Description");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top