getAscent.lua 439 B

12345678910111213141516171819
  1. return {
  2. summary = 'Get the ascent of the Font.',
  3. description = [[
  4. Returns the maximum distance that any glyph will extend above the Font's baseline. Units are
  5. generally in meters, see `Font:getPixelDensity`.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. {
  10. name = 'ascent',
  11. type = 'number',
  12. description = 'The ascent of the Font.'
  13. }
  14. },
  15. related = {
  16. 'Font:getDescent',
  17. 'Rasterizer:getAscent'
  18. }
  19. }