Edit.font read/write property
Get the Edit font, a string value that represent the font name.
To set the Edit.font property, you can assign a string that represent either a font name of an installed system font, or a font file (*.ttf, *.fon...).
A File can also be provided, representing a font file.
Note that only the font family is changed. The font style and font size are not affected (see the Edit.fontstyle and the Edit.fontsize properties).
Example
local ui = require "ui"
-- create a simple window
local win = ui.Window("Edit.font sample", "fixed", 340, 230)
local label = ui.Label(win, "Enter text : ", 10, 10)
local edit = ui.Edit(win, "", label.x + label.width + 8, label.y)
edit.font = "Times New Roman"
edit.text = "Hello World in '"..edit.font.."' "..edit.fontsize.."px"
win:show()
-- update the user interface until the user closes the Window
repeat
ui.update()
until not win.visible