Changes
Jump to navigation
Jump to search
Line 184:
Line 184:
+
+
+
+
Development Team/Almanac/Pango (view source)
Revision as of 13:14, 17 July 2008
, 13:14, 17 July 2008→How do I control the appearance of fonts on a Pango layout?
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? ===