Font.textWidth

Warning gdk_text_width is deprecated and should not be used in newly-written code. Determines the width of a given string.

class Font
int
textWidth
(
string text
,)

Parameters

text string

the text to measure.

textLength int

the length of the text in bytes.

Return Value

Type: int

the width of the string in pixels.

Meta