[pygtk] Getting the pixel dimensions of a monospace font

Noam Raphael noamraph at gmail.com
Sun Aug 31 06:54:05 WST 2008


Hello,

I have a TextView which uses a monospace font. I would like to set its
width (by using textview.props.width_request = width) to the width of
80 characters. The question is, how can I know the width and height,
in pixels, of a character?

Thanks,
Noam


More information about the pygtk mailing list