Tab.font read/write property


Get the Tab font, a string value that represent the font name.
To set the Tab.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 Tab.fontstyle and the Tab.fontsize properties).

By default, an Tab uses the same font as its parent widget

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Tab.font sample", 274, 220) local tab = ui.Tab(win, {'Item 1', 'Item 2'}) tab.font = "Lucida Console" tab.fontsize = 8 tab.width = 260 tab.items[1].text = tab.font.."' "..tab.fontsize.."px" win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible