How can I render Japanesse or Chinese fonts in CfW compose? you can see the attached pic, it should say 【Spirits】-『如果這是無法反抗的命運的話 我會為了你而活下去』
a
Arjan van Wieringen
03/13/2023, 6:59 PM
Does your font support those characters?
g
Giorgi
03/13/2023, 7:10 PM
I have not added any by myself.
on Android I would load them from resources, but how it will work on JS?
a
Arjan van Wieringen
03/13/2023, 7:16 PM
Can you make a simple HTML page with the included font and test the characters? Then you know if the font supports it or if it is a CfW issue
d
darkmoon_uk
03/13/2023, 9:16 PM
General TTF loading and rendering works [code] so this should be a typeface issue?
@Giorgi I added a Chinese font rendering example here [code]. 👈
And yes, it's really just a case of loading a suitable font.
It turns out TTF files with full Chinese character sets in them are not small (this one is a bit fancy at 10MB, but even plainer glyphs are around 8MB)
g
Giorgi
03/16/2023, 1:03 PM
Thanks a lot for the example. There is even a Kotlin waifu.... :kotlin-intensifies: