Font.textExtents

Warning gdk_text_extents is deprecated and should not be used in newly-written code. Gets the metrics of a string.

class Font
void
textExtents
(
string text
,,
out int lbearing
,
out int rbearing
,
out int width
,
out int ascent
,
out int descent
)

Parameters

text string

the text to measure

textLength int

the length of the text in bytes. (If the font is a 16-bit font, this is twice the length of the text in characters.)

lbearing int

the left bearing of the string.

rbearing int

the right bearing of the string.

width int

the width of the string.

ascent int

the ascent of the string.

descent int

the descent of the string.

Meta