setPixelDensity.lua 600 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Set the pixel density of the Font.',
  3. description = [[
  4. Sets the pixel density for the Font. Normally, this is in pixels per meter. When rendering to
  5. a 2D texture, the units are pixels.
  6. ]],
  7. arguments = {
  8. pixelDensity = {
  9. type = 'number',
  10. description = 'The new pixel density.'
  11. }
  12. },
  13. returns = {},
  14. variants = {
  15. {
  16. arguments = { 'pixelDensity' },
  17. returns = {}
  18. },
  19. {
  20. description = 'Reset the pixel density to the default (`font:getRasterizer():getHeight()`).',
  21. arguments = {},
  22. returns = {}
  23. }
  24. }
  25. }