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 20:07, 26 July 2012
No change in size
,
20:07, 26 July 2012
→Going from Cairo in GTK-2 to Cairo in GTK-3
Line 354:
Line 354:
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)
+
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)
Humitos
266
edits