JetBrains / skiko

Kotlin Multiplatform bindings to Skia
Apache License 2.0
1.82k stars 118 forks source link

Skiko can't draw bold Japanese characters on macOS #944

Closed RadiationX closed 1 month ago

RadiationX commented 4 months ago

If there are both Japanese and Latin characters in the same text, and the text has a bold style, then the Japanese characters are not rendered in bold.

In my case, I am making a compose multiplatform application for a Japanese dictionary and different styles are used for the text there. At the same time, the text is rendered as it should on Android, iOS and Swing, so I decided that the problem is in Skiko|Skia.

I made a demo project to reproduce this bug (Compose + Skiko + Swing), I also tried the Native macOS example from this repository and there is the same problem. Everything is clearly visible on the screenshot. I have also attached the archive with the demo project.

I don't know at what point it stopped working, but it definitely worked on 10/01/2023 (kotlin 1.8.20, compose 1.4.1).

The environments I was able to reproduce this bug on: java: Zulu 17 kotlin: 1.8.20, 2.0.0 compose: 1.4.1, 1.6.10 macos: ventura(13), sonoma(14.1, 14.4.1, 14.5) android studio: jellyfish, koala

Demo.zip

image
okushnikov commented 1 month ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.