LensStudio:Ui.FontRole
EnumEnum specifying font role for styling.
Index
Enumeration Members
Example
const Ui = await import('LensStudio:Ui');
const parent = null as unknown as import('LensStudio:Ui').Widget;
const titleLabel = new Ui.Label(parent);
titleLabel.text = 'Section Title';
const bodyLabel = new Ui.Label(parent);
bodyLabel.text = 'Body text uses default font role';
console.log(`FontRole: Default=${Ui.FontRole.Default}, Title=${Ui.FontRole.Title}, Monospace=${Ui.FontRole.Monospace}, Small=${Ui.FontRole.Small}`);
Enumeration Members
Default
Default:
number
Default font role.
DefaultBold
DefaultBold:
number
Default font role with bold weight.
DefaultItalic
DefaultItalic:
number
Default font role with italic style.
DefaultUnderlined
DefaultUnderlined:
number
Default font role with underline.
First
First:
number
First font role.
LargeTitle
LargeTitle:
number
Large title font role.
LargeTitleBold
LargeTitleBold:
number
Large title font role with bold weight.
MediumTitle
MediumTitle:
number
Medium title font role.
MediumTitleBold
MediumTitleBold:
number
Medium title font role with bold weight.
Monospace
Monospace:
number
Monospace font role.
Small
Small:
number
Small font role.
SmallTitle
SmallTitle:
number
Small title font role.
Title
Title:
number
Title font role.
TitleBold
TitleBold:
number
Title font role with bold weight.