Edit.fontsize read/write property


Get or set the Edit font size, a number that represent the font size in pixels.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Edit.fontsize 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 = "Courier New" edit.fontsize = 11 edit.text = edit.font.." font, "..edit.fontsize.."px" win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible