Jump to content
You must now use your email address to sign in [click for more info] ×

Bug in Khmer Text Rendering


Recommended Posts

See this thread for context. I'm using AD 1.7.1 from the Mac App Store on a MBP.

Though rendering in AD/AP for Khmer script is complete and correct, it has a bug, which requires a difficult and sometimes debilitating workaround to use Khmer effectively. Because I need Khmer script to work out-of-the-box, I have invested a significant amount of time to provide as much information as is possible to repeat it and identify it, in hopes it will be fixed in the short term.

This bug did not exist previously. Before, most Khmer fonts would be rendered correctly and normally. I am unsure when this problem appeared.

See attached image.

By default, Khmer text is rendered incorrectly in AD/AP. But for some reason, adding extra characters on the end of a string of text mysteriously makes AD render the Khmer script correctly, but only when you add enough characters. It begins correctly rendering counting backward a certain number of characters. And as you add more random characters on the end, more of the original string begins to render correctly.

At a minimum, this demonstrates that AD/AP can render Khmer text correctly. Therefore, this seems like it might be a bug.

Furthermore, in apparently any block of Khmer text, if I add enough random characters after the block (with no LF/CR; that is, directly connected to the block), all of the block of Khmer text will eventually render correctly. The more characters in the block of text, the more random characters at the end that are needed. Random characters on the end that cause this behavior must be Khmer characters. Latin characters do not work. Alternatively, I can add nothing but spaces—like 20 or 30 spaces—and as long as a single Khmer character follows, the rendering is correct in the block of text. At whatever point a carriage return is found, the process must be repeated for the new string to render that paragraph correctly.

Lastly, in a Khmer string, if any of the random characters added to the end of the text have any kind of different style applied to them, the rendering in the text string is broken again, just as if no extra characters were added at all.

Thank you for your time to solve this problem. Let me know if you have any questions that I can help with.

I have also attached the font I was using in this example. Its behavior is exactly the same as many other fonts.

193976024_ScreenShot2019-07-20at2_59_21PM.thumb.png.df566ff25802b810bd099d85039a42fd.png

Kh Baphnom iChannli Version 2.30 January 18, 2017.ttf

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.