getHeight.lua 882 B

1234567891011121314151617181920212223242526272829303132
  1. return {
  2. summary = 'Get the height of the Font.',
  3. description = [[
  4. Returns the height of the font, sometimes also called the leading. This is the full height of a
  5. line of text, including the space between lines. Each line of a multiline string is separated
  6. on the y axis by this height, multiplied by the font's line spacing. The units depend on the
  7. font's pixel density. With the default density, the units correspond to meters.
  8. ]],
  9. arguments = {},
  10. returns = {
  11. height = {
  12. type = 'number',
  13. description = 'The height of the font.'
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = {},
  19. returns = { 'height' }
  20. }
  21. },
  22. related = {
  23. 'Rasterizer:getLeading',
  24. 'Font:getLineSpacing',
  25. 'Font:setLineSpacing',
  26. 'Font:getAscent',
  27. 'Font:getDescent',
  28. 'Font:getKerning',
  29. 'Font:getWidth',
  30. 'Font:getLines'
  31. }
  32. }