Spec-Zone.ru › LÖVE

Font:getBaseline

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Gets the baseline of the Font. Most scripts share the notion of a baseline: an imaginary horizontal line on which characters rest. In some scripts, parts of glyphs lie below the baseline.

Function

Synopsis

baseline = Font:getBaseline( )

Arguments

None.

Returns

number baseline
The baseline of the Font in pixels.

See Also

  • Font
  • Font:getAscent
  • Font:getDescent

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

Spec-Zone.ru

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