Changes

Line 278: Line 278:  
The Cairo/Pango interaction is a little different:
 
The Cairo/Pango interaction is a little different:
 
<pre>
 
<pre>
 +
from gi.repository import Pango, PangoCairo
 +
 
cairo_context = ...
 
cairo_context = ...
 
pango_layout = PangoCairo.create_layout(cairo_context)
 
pango_layout = PangoCairo.create_layout(cairo_context)
 +
fd = Pango.FontDescription('Sans')
 
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)