On 15/09/03 20:06, Nathan Hurst wrote:

On Thu, 11 Sep 2003 12:15:32 +0800
James Henstridge <[EMAIL PROTECTED]> wrote:



On 11/09/2003 11:38 AM, Nathan Hurst wrote:



How can I create a new, or copy an existing, pango context?  I am
currently using the widget.get_pango_context() one, but I can't work out
how to make a new one.  If I use the one attached to the widget I have
to restore everything after every use.




widget.create_pango_context() should give you a new one.



Thanks!


Why doesn't pango.Context() work though?


PangoContext is really an abstract interface. There are currently context implementations for core X fonts (already removed from the HEAD branch), Xft, Win32 and freetype. Widget.create_pango_context() will create a context appropriate for use with that widget, so you don't need to worry about these details.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to