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?

有帮助吗?

解决方案

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");
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top