setFont.lua 409 B

1234567891011121314151617
  1. return {
  2. tag = 'graphicsState',
  3. summary = 'Set the active font.',
  4. description = 'Sets the active font used to render text with `lovr.graphics.print`.',
  5. arguments = {
  6. {
  7. name = 'font',
  8. type = 'Font',
  9. default = 'nil',
  10. description = 'The font to use. If `nil`, the default font is used (Varela Round).'
  11. }
  12. },
  13. returns = {},
  14. related = {
  15. 'lovr.graphics.print'
  16. }
  17. }