getAscent.lua 438 B

12345678910111213141516171819
  1. return {
  2. summary = 'Get the ascent of the font.',
  3. description = [[
  4. Returns the ascent metric of the font, in pixels. The ascent represents how far any glyph of
  5. the font ascends above the baseline.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. {
  10. name = 'ascent',
  11. type = 'number',
  12. description = 'The ascent of the font, in pixels.'
  13. }
  14. },
  15. related = {
  16. 'Rasterizer:getDescent',
  17. 'Font:getAscent'
  18. }
  19. }