console.font read/write property
Get the current console font, a string value that represent the font name.
To set the console.font property, you can assign :
- A string that represent either a font name from the system fonts.
- A string or a File that represent a font file (*.ttf, *.fon...)
Example
local console = require "console"
console.clear()
local message = "Hello World !"
console.font = "Consolas"
console.fontsize = 48
console.fullscreen = true
console.x = math.floor((console.width-message:len())/2)
console.y = math.floor(console.height/2)
console.writecolor("purple", message)
console.cursor = false
console.readchar()
console.clear()