GdkFont::height

GdkFont::height

The return value of height() is arrived at by summing the values of ascent and descent returned by extents() and relating to the current string.

Under win32, this is a bogus value. Add the values returned by the GdkFont properties ascent and descent to get the value of the font's height.

The value of the height is the line-height, given in pixels, and represents the logical space required by a line. If you are using this measurement to calculate the size of a text box, you will need to add 6 pixels to the total to allow for the borders of the text widget.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.