(weight: FontWeightType)
| 82 | } |
| 83 | |
| 84 | public withFontWeight(weight: FontWeightType): Font { |
| 85 | return new Font(this.fontFamily, this.fontSize, this.fontStyle, weight, this.fontScale, this.fontVariationSettings); |
| 86 | } |
| 87 | |
| 88 | public withFontSize(size: number): Font { |
| 89 | return new Font(this.fontFamily, size, this.fontStyle, this.fontWeight, this.fontScale, this.fontVariationSettings); |