kinhong / OpenLabeler

OpenLabeler is an open source desktop application for annotating objects for AI appplications
Apache License 2.0
112 stars 11 forks source link

Myanmar characters do not appear correctly #10

Open yanpaioo opened 4 years ago

yanpaioo commented 4 years ago

Myanmar characters don't appear correctly in labels. Screenshot 2020-01-01 at 10 19 28 PM Screenshot 2020-01-01 at 10 20 59 PM

Here are sample Myanmar characters ကခလ၁၂၃၄ When such characters are keyed in in labels, they appear differently. Could they be supported, please?

kinhong commented 4 years ago

@yanpaioo - It seems that Myanmar characters can't be rendered correctly for now (OpenLabeler currently uses JDK 11.0.2) until either JDK 14 or JDK 11.0.7 is released (in Mar and April 2020 respectively). Here are the related JDK bugs on Myanmar character rendering issues:

JDK-8223558 JDK-8236526

On Mac OS, the issue is more severe as the Unicode font is not rendered at all. Meanwhile, I would suggest trying OpenLabeler on the Linux platform, which supports better rendering (but still suffers the problem of not combining one glyph from two characters).

I will be sure to add this support once the underlying problem is fixed in Java core.