Font

Defines the Font Component.

Summary
FontDefines the Font Component.
Functions
new
New FontA Component defining certain text manipulations.
Variables
sizeThe Font’s initial size.
styleThe Font’s initial FontStyle.
decorationThe Font’s initial FontDecoration.
stylesheetThe Font Component’s stylesheet.
Functions
updateStylesheetUpdates the Font Component’s stylesheet.
Properties
Font Properties

Functions

new

local function new (_,
init_size,
init_style,
init_decoration)

Parameters

init_sizeThe Font Component’s initial size.  Valid sizes are defined by QT, but I can only seem to get numbers to work.
init_styleThe Font Component’s initial style.  Optional.  Must be a FontStyle or FontWeight Component.
init_decorationThe Font Component’s initial FontDecoration.  Optional.

Returns

A new Font Component.

New Font

A Component defining certain text manipulations.

Summary
Variables
sizeThe Font’s initial size.
styleThe Font’s initial FontStyle.
decorationThe Font’s initial FontDecoration.
stylesheetThe Font Component’s stylesheet.
Functions
updateStylesheetUpdates the Font Component’s stylesheet.
Properties
Font Properties

Variables

size

local size

The Font’s initial size.

style

local style

The Font’s initial FontStyle.

decoration

local decoration

The Font’s initial FontDecoration.

stylesheet

local stylesheet

The Font Component’s stylesheet.  Generated via updateStylesheet.

Functions

updateStylesheet

local function updateStylesheet ()

Updates the Font Component’s stylesheet.

Properties

Font Properties

SizeGets and sets the Font’s size.  Should probably be a number.
StyleGets and sets the Font’s FontStyle.  Removes the Font’s FontWeight if set.
WeightGets and sets the Font’s FontWeight.  Removes the Font’s FontStyle if set.
DecorationGets and sets the Font’s FontDecoration.
StylesheetUpdates and returns the Font Component’s stylesheet.
local function new (_,
init_size,
init_style,
init_decoration)
local size
The Font’s initial size.
local style
The Font’s initial FontStyle.
local decoration
The Font’s initial FontDecoration.
local stylesheet
The Font Component’s stylesheet.
local function updateStylesheet ()
Updates the Font Component’s stylesheet.
Close