Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/GTK3/Porting
(view source)
Revision as of 09:15, 14 November 2011
30 bytes added
,
09:15, 14 November 2011
→Going from Cairo in GTK-2 to Cairo in GTK-3
Line 293:
Line 293:
pango_layout = PangoCairo.create_layout(cairo_context)
pango_layout = PangoCairo.create_layout(cairo_context)
fd = Pango.FontDescription('Sans')
fd = Pango.FontDescription('Sans')
+
fd.set_size(12 * pango.SCALE)
pango_layout.set_font_description(fd)
pango_layout.set_font_description(fd)
pango_layout.set_text('Hello World', -1)
pango_layout.set_text('Hello World', -1)
Walter
Bureaucrats
,
Administrators
10,579
edits