getDescent.lua 648 B

12345678910111213141516171819202122232425262728
  1. return {
  2. summary = 'Get the descent of the Font.',
  3. description = [[
  4. Returns the descent of the font. The descent is the maximum amount glyphs descend below 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. descent = {
  11. type = 'number',
  12. description = 'The descent of the font.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'descent' }
  19. }
  20. },
  21. related = {
  22. 'Rasterizer:getDescent',
  23. 'Font:getAscent',
  24. 'Font:getHeight',
  25. 'Font:getKerning',
  26. 'Font:getWidth'
  27. }
  28. }