Changes

Jump to navigation Jump to search
Line 184: Line 184:  
self.pango_layout.set_markup('<span foreground=\"blue\">This is some sample markup</span> <sup>text</sup> that <span style=\"normal\" size=\"small\">is displayed with pango</span>\n\n <u>Current time:</u> ')
 
self.pango_layout.set_markup('<span foreground=\"blue\">This is some sample markup</span> <sup>text</sup> that <span style=\"normal\" size=\"small\">is displayed with pango</span>\n\n <u>Current time:</u> ')
 
</pre>
 
</pre>
 +
 +
The screenshot below shows how the text above shows up after setting the default font earlier and then customizing with the markup.
 +
 +
[[Image: pango-font-control-appearance.jpg]]
    
=== In addition to drawing areas, are there other types of widgets in which I can embed pango layouts? ===
 
=== In addition to drawing areas, are there other types of widgets in which I can embed pango layouts? ===
Anonymous user

Navigation menu