Fighting with the size of a font



Hi there,
with the code :

markupText = "<span font_family='Sans normal' foreground='black' size='12800'>" + text + "</span>";
pangoLayout->set_markup(markupText);
int width, height;
pangoLayout->get_pixel_size(width, height);

I expected a height of 12,5, but the height is 25.

And what does the 25 mean. I thought it is the height of the font in pixel.
But I have a Row with a height of 20 pixel and the string fits into this row, although get_pixel_size tells me the height of the font is 25.
(but its not 12,5 either, because the string almost fills the whole row, so it must be around 20)

thanks
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser



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