alphaTab.model.Font
(no description)
class FontProperties​
families​
Gets the font family name.
- JavaScript
- C#
- Kotlin
family​
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) |