create_pango_layout
Description:
Creates a new Layout from the same Context used by the Actor.
The Layout is already configured with the font map, resolution and font options, and the
given text
.
If you want to keep around a Layout created by this function you will have to connect to the font_changed and resolution_changed signals, and call context_changed in response to them.
Parameters:
this |
a Actor |
text |
the text to set on the Layout, or |