getLeading.lua 479 B

123456789101112131415161718192021222324
  1. return {
  2. summary = 'Get the leading of the font.',
  3. description = [[
  4. Returns the leading metric of the font, in pixels. This is the full amount of space between
  5. lines.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. leading = {
  10. type = 'number',
  11. description = 'The font leading, in pixels.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'leading' }
  18. }
  19. },
  20. related = {
  21. 'Rasterizer:getAscent',
  22. 'Rasterizer:getDescent'
  23. }
  24. }