[pygtk] Pango measures font sizes weirdly
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Jun 10 18:12:47 WST 2011
Pango seems to have a creative notion of what the point
size of a font means.
On most systems, the size of a font is taken to be the
total height, including ascent and descent. However,
Pango seems to think it means the ascent only.
For example, using Cocoa on MacOSX, if I ask for
48 point Times Roman I get a font with ascent = 36,
descent = 12.
But using Pango I get ascent = 48, descent = 16.
This is very inconvenient for PyGUI, because it makes
it difficult to write text-rendering code that produces
consistent results across platforms.
Anyone have any idea what I can do about this?
--
Greg
More information about the pygtk
mailing list