skiko/src/webTest/kotlin/org/jetbrains/skia/ParagraphWebTest.kt [22:37]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - textStyle = TextStyle().apply { this.fontSize = 32.0f }.setColor(Color.BLACK) } val paragraph = ParagraphBuilder(paragraphStyle, fontCollection).use { it.addText("\t\t\t .") it.build().layout(100.0f) } val surface = Surface.makeRasterN32Premul(100, 50) surface.canvas.clear(Color.WHITE) paragraph.paint(surface.canvas, 0.0f, 0.0f) surface.makeImageSnapshot().use { image -> val bitmap = Bitmap.makeFromImage(image) assertTrue(bitmap.height == 50) assertTrue(bitmap.width == 100) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - skiko/src/webTest/kotlin/org/jetbrains/skia/ParagraphWebTest.kt [76:91]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - textStyle = TextStyle().apply { this.fontSize = 32.0f }.setColor(Color.BLACK) } val paragraph = ParagraphBuilder(paragraphStyle, fontCollection).use { it.addText("\t\t\t .") it.build().layout(100.0f) } val surface = Surface.makeRasterN32Premul(100, 50) surface.canvas.clear(Color.WHITE) paragraph.paint(surface.canvas, 0.0f, 0.0f) surface.makeImageSnapshot().use { image -> val bitmap = Bitmap.makeFromImage(image) assertTrue(bitmap.height == 50) assertTrue(bitmap.width == 100) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -