alphaTab.model.Font
(no description)
class FontPropertiesโ
familiesโ
Gets the font family name.
- JavaScript
- C#
- Kotlin
familyโ
Deprecated
Consider using families for multi font family support.
Gets the first font family name.
- JavaScript
- C#
- Kotlin
family: string;string Family { get; set; }var family: StringisBoldโ
(no description)
- JavaScript
- C#
- Kotlin
readonly isBold: boolean;bool IsBold { get; }val isBold: BooleanisItalicโ
(no description)
- JavaScript
- C#
- Kotlin
readonly isItalic: boolean;bool IsItalic { get; }val isItalic: Booleansizeโ
Gets the font size in pixels.
- JavaScript
- C#
- Kotlin
size: number;double Size { get; set; }var size: Doublestyleโ
Gets the font style.
weightโ
Gets the font weight.
- JavaScript
- C#
- Kotlin
Methodsโ
fromJsonโ
(no description)
| Parameter | Summary |
|---|---|
vAll | (no description) |
toCssStringโ
(no description)
- JavaScript
- C#
- Kotlin
toCssString(scale?: number): stringstring ToCssString(double? scale)fun toCssString(scale: Double?): String| Parameter | Summary |
|---|---|
scaleAll | (no description) |
toJsonโ
(no description)
| Parameter | Summary |
|---|---|
fontAll | (no description) |
withFamilyListโ
Initializes a new instance of the Font class.
- JavaScript
- C#
- Kotlin
static withFamilyList(families: string[], size: number, style?: FontStyle, weight?: FontWeight): Fontstatic Font WithFamilyList(IList<string> families, double size, FontStyle? style, FontWeight? weight)fun withFamilyList(families: , size: Double, style: FontStyle?, weight: FontWeight?): Font| Parameter | Summary |
|---|---|
familiesAll | The families. |
sizeAll | The size. |
styleAll | The style. |
weightAll | The weight. |
withSizeโ
(no description)
| Parameter | Summary |
|---|---|
newSizeAll | (no description) |