Layout.writeToFile
bool writeToFile(pango.types.LayoutSerializeFlags flags, string filename)A convenience method to serialize a layout to a file.
It is equivalent to calling pango.layout.Layout.serialize followed by funcGLib.file_set_contents.
See those two functions for details on the arguments.
It is mostly intended for use inside a debugger to quickly dump a layout to a file for later inspection.
Parameters
flags | pango.types.LayoutSerializeFlags |
filename | the file to save it to |
Returns
true if saving was successful