Skip to content

Commit

Permalink
Update SkiaAwtSample
Browse files Browse the repository at this point in the history
  • Loading branch information
eymar committed Jul 30, 2024
1 parent cc51ced commit 4e29d81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlin.math.sin
open class ClocksAwt(private val scaleProvider: () -> Float) : SkikoRenderDelegate, MouseMotionListener {
constructor(layer: SkiaLayer) : this({ layer.contentScale })

private val typeface = Typeface.makeFromFile("fonts/JetBrainsMono-Regular.ttf")
private val typeface = FontMgr.default.makeFromFile("fonts/JetBrainsMono-Regular.ttf")
private val font = Font(typeface, 13f).apply {
edging = FontEdging.SUBPIXEL_ANTI_ALIAS
hinting = FontHinting.SLIGHT
Expand Down

0 comments on commit 4e29d81

Please sign in to comment.