From 50a7438a57daffd1d2e75ec33a451b1afcef38f1 Mon Sep 17 00:00:00 2001 From: "pavel.sergeev" Date: Tue, 29 Oct 2024 19:35:21 +0100 Subject: [PATCH] it seems that spaces isn't allowed in resource path for native targets --- .../kotlin/org/jetbrains/skia/ParagraphTest.kt | 2 +- .../JetBrainsMono-Regular.ttf | Bin 2 files changed, 1 insertion(+), 1 deletion(-) rename skiko/src/commonTest/resources/fonts/{JetBrains Mono 2_304 => JetBrainsMono_2_304}/JetBrainsMono-Regular.ttf (100%) diff --git a/skiko/src/commonTest/kotlin/org/jetbrains/skia/ParagraphTest.kt b/skiko/src/commonTest/kotlin/org/jetbrains/skia/ParagraphTest.kt index ed8052f01..b26facaad 100644 --- a/skiko/src/commonTest/kotlin/org/jetbrains/skia/ParagraphTest.kt +++ b/skiko/src/commonTest/kotlin/org/jetbrains/skia/ParagraphTest.kt @@ -18,7 +18,7 @@ class ParagraphTest { private val fontCollection = suspend { FontCollection().setDefaultFontManager(TypefaceFontProvider().apply { registerTypeface(Typeface.makeFromResource("./fonts/Inter-Hinted-Regular.ttf"), "Inter") - registerTypeface(Typeface.makeFromResource("./fonts/JetBrains Mono 2_304/JetBrainsMono-Regular.ttf"), "JetBrains Mono") + registerTypeface(Typeface.makeFromResource("./fonts/JetBrainsMono_2_304/JetBrainsMono-Regular.ttf"), "JetBrains Mono") }) } private val style = ParagraphStyle().apply { diff --git a/skiko/src/commonTest/resources/fonts/JetBrains Mono 2_304/JetBrainsMono-Regular.ttf b/skiko/src/commonTest/resources/fonts/JetBrainsMono_2_304/JetBrainsMono-Regular.ttf similarity index 100% rename from skiko/src/commonTest/resources/fonts/JetBrains Mono 2_304/JetBrainsMono-Regular.ttf rename to skiko/src/commonTest/resources/fonts/JetBrainsMono_2_304/JetBrainsMono-Regular.ttf