Replies: 1 comment
-
Curious! I just deleted all the hanja that showed up as the FALLBACK_REPLACEMENT character, and now a certain amount of others are showing up as the question mark (and this time very common characters too). I guess I'll go back to uploading two fonts as before and the larger WASM file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi again,
This is related to Korean font. I've actually been able to resolve this but with a bit of a hacky solution. A few days ago I added a Korean font and it worked well for displaying the Korean, but oddly enough the hanja (the Chinese characters used in Korean) would sometimes show up as question marks, the second replacement character I see in the code:
Here it is in practice:
Now what's odd about this is that they should be showing up, and you do see them if you copy and paste them to something else like the command line under the same font. When I do so, they all show up as 捍閈暵鼾僩嫺嫻駻鷳 (properly displayed) even though they were the FALLBACK_REPLACEMENT_CHAR inside egui.
The way I solved it was by adding a Chinese or Japanese font, which it would then use as a fallback when the Korean font alone couldn't do the job. The WASM file at the end though was about 37 MB.
I'd rather just use the Korean font to do it all. I'm actually considering just deleting the hanja in the txt file I have that don't display properly because they are admittedly pretty rare and I don't think anyone would miss them. But it would be best if I could just get them to display with the single Korean font.
Thanks again!
Beta Was this translation helpful? Give feedback.
All reactions