In the past, I've been able to determine the width of a string before it
is displayed by using the width() method of a GdkFont. With the change
to Pango, this method no longer seems to apply. While I can get a
GdkFont, and use the string_width method, it doesn't seem to return a
correct value.

Is there a new way of doing this? My code is trying to determine the
length of strings before they are displayed on a canvas so I can tell
how many will fit.

Don Allingham


-- 
Don Allingham
[EMAIL PROTECTED]
http://gramps.sourceforge.net


_______________________________________________
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