pango lies!

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]