copy With Size
fun TextStyle.copyWithSize(fontSize: TextUnit, color: Color = this.color, fontWeight: FontWeight? = this.fontWeight, fontStyle: FontStyle? = this.fontStyle, fontSynthesis: FontSynthesis? = this.fontSynthesis, fontFamily: FontFamily? = this.fontFamily, fontFeatureSettings: String? = this.fontFeatureSettings, letterSpacing: TextUnit = this.letterSpacing, baselineShift: BaselineShift? = this.baselineShift, textGeometricTransform: TextGeometricTransform? = this.textGeometricTransform, localeList: LocaleList? = this.localeList, background: Color = this.background, textDecoration: TextDecoration? = this.textDecoration, shadow: Shadow? = this.shadow, drawStyle: DrawStyle? = this.drawStyle, textAlign: TextAlign = this.textAlign, textDirection: TextDirection = this.textDirection, textIndent: TextIndent? = this.textIndent, platformStyle: PlatformTextStyle? = this.platformStyle, lineHeightStyle: LineHeightStyle? = this.lineHeightStyle, lineBreak: LineBreak = this.lineBreak, hyphens: Hyphens = this.hyphens, textMotion: TextMotion? = this.textMotion): TextStyle
fun TextStyle.copyWithSize(fontSize: TextUnit, brush: Brush?, alpha: Float = this.alpha, fontWeight: FontWeight? = this.fontWeight, fontStyle: FontStyle? = this.fontStyle, fontSynthesis: FontSynthesis? = this.fontSynthesis, fontFamily: FontFamily? = this.fontFamily, fontFeatureSettings: String? = this.fontFeatureSettings, letterSpacing: TextUnit = this.letterSpacing, baselineShift: BaselineShift? = this.baselineShift, textGeometricTransform: TextGeometricTransform? = this.textGeometricTransform, localeList: LocaleList? = this.localeList, background: Color = this.background, textDecoration: TextDecoration? = this.textDecoration, shadow: Shadow? = this.shadow, drawStyle: DrawStyle? = this.drawStyle, textAlign: TextAlign = this.textAlign, textDirection: TextDirection = this.textDirection, textIndent: TextIndent? = this.textIndent, platformStyle: PlatformTextStyle? = this.platformStyle, lineHeightStyle: LineHeightStyle? = this.lineHeightStyle, lineBreak: LineBreak = this.lineBreak, hyphens: Hyphens = this.hyphens, textMotion: TextMotion? = this.textMotion): TextStyle
Creates a copy of this TextStyle with a new fontSize and an appropriately set line height.