Trying to create pango Layout
- From: Toms <toms baugis gmail com>
- To: python-hackers-list gnome org
- Subject: Trying to create pango Layout
- Date: Fri, 4 Jun 2010 15:37:29 +0100
I'm trying to create a pango layout using following code:
from gi.repository import Pango, PangoCairo
import cairo
context = cairo.Context(cairo.ImageSurface(cairo.FORMAT_ARGB32, 100, 100))
PangoCairo.create_layout(context)
Trouble is that this returns a pango.Layout instead of Layout object
and does not have all the necessary functions to manipulate the
layout.
Any pointers appreciated!
Toms
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]