2
0

getAscent.lua 507 B

123456789101112131415161718192021222324
  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. ascent = {
  10. type = 'number',
  11. description = 'The ascent of the font, in pixels.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'ascent' }
  18. }
  19. },
  20. related = {
  21. 'Rasterizer:getDescent',
  22. 'Font:getAscent'
  23. }
  24. }