NyxTextFormat constructor
NyxTextFormat({})
Constructor to initialize the NyxTextFormat with default values or custom ones.
textSize The size of the text. Default is 24.
underline Whether the text should be underlined. Default is false.
textScaleX The horizontal scaling factor for the text. Default is 1.0.
textScaleY The vertical scaling factor for the text. Default is 1.0.
letterSpacing The space between letters. Default is 0.
lineSpacing The space between lines of text. Default is 0.
topPadding The top padding for the text. Default is 0.
leftPadding The left padding for the text. Default is 0.
align The alignment of the text. Default is NyxAlign.left.
style The font style. Default is NyxFontStyle.normal.
font The font type. Default is NyxFont.defaultFont.
Implementation
NyxTextFormat({
this.textSize = 24,
this.underline = false,
this.textScaleX = 1.0,
this.textScaleY = 1.0,
this.letterSpacing = 0,
this.lineSpacing = 0,
this.topPadding = 0,
this.leftPadding = 0,
this.align = NyxAlign.left,
this.style = NyxFontStyle.normal,
this.font = NyxFont.defaultFont,
});