- From: Paul Davis <paul linuxaudiosystems com>
- To: gtk-list gnome org
- Subject: pango lies!
- Date: Mon, 10 Apr 2006 12:35:33 -0400
so, for lots of obvious reasons, i am use pango_layout_get_pixel_size()
to determine the display size of some text. i understand that a font
specification like "sans 8" uses points, and so pango needs to check the
display resolution to determine how many pixels per inch and thus pixels
per point. consequently, its reasonable that get_pixel_size() will
return different values on displays of different resolution.
what is not reasonable is that on said displays, where returned heights
vary (for example) between 13 and 17 pixels, the actual number of pixels
used to display the text is *identical*. we've measured this on 5
systems now, and in every case, the actual pixel height is constant
despite variations in what pango reports.
can anyone explain this? is it a bug? is there something i don't
] [Thread Prev