Font.textMeasure

Warning gdk_text_measure is deprecated and should not be used in newly-written code. Determines the distance from the origin to the rightmost portion of a string when drawn. This is not the correct value for determining the origin of the next portion when drawing text in multiple pieces. See gdk_text_width().

class Font
int
textMeasure
(
string text
,)

Parameters

text string

the text to measure.

textLength int

the length of the text in bytes.

Return Value

Type: int

the right bearing of the string in pixels.

Meta