Spec-Zone.ru › LÖVE

Font:getWidth

Determines the maximum width (accounting for newlines) taken by the given string.

Function

Synopsis

width = Font:getWidth( text )

Arguments

string text
A string.

Returns

number width
The width of the text.

See Also

  • Font


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Font:getWidth

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API