in sample/src/main/kotlin/org/jetbrains/desktop/sample/linux/SkikoSampleLinux.kt [658:671]
fun makeTextLine(text: String, fontSize: Float): TextLine {
if (textLine == null || this.cachedText != text || this.cachedFontSize != fontSize) {
Logger.info { "makeTextLine update: $text" }
this.cachedText = text
this.cachedFontSize = fontSize
val font = FontMgr.default.matchFamilyStyle("sans-serif", FontStyle.BOLD)?.let { typeface ->
Font(typeface, fontSize)
}
textLine = TextLine.make(text, font)
} else {
// Logger.info { "makeTextLine: $text == ${this.text}" }
}
return textLine!!
}