getAscent.lua 641 B

12345678910111213141516171819202122232425262728
  1. return {
  2. summary = 'Get the ascent of the Font.',
  3. description = [[
  4. Returns the ascent of the font. The ascent is the maximum amount glyphs ascend above the
  5. baseline. The units depend on the font's pixel density. With the default density, the units
  6. correspond to meters.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. ascent = {
  11. type = 'number',
  12. description = 'The ascent of the font.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'ascent' }
  19. }
  20. },
  21. related = {
  22. 'Rasterizer:getAscent',
  23. 'Font:getDescent',
  24. 'Font:getHeight',
  25. 'Font:getKerning',
  26. 'Font:getWidth'
  27. }
  28. }