pnarimani / RTLTMPro

Right-To-Left Text Mesh Pro for Unity. This plugin adds support for Persian and Arabic languages to TextMeshPro.
MIT License
526 stars 100 forks source link

The underlines are not correctly displayed in RTL #124

Open uniyeh opened 7 months ago

uniyeh commented 7 months ago

I've tried to create Arabic content with segoeui SDF Arabic from RTLTMPro, but unfortunately, it fails to display underlines correctly, with some pixels appearing incomplete, as in the attached image. segoeui

After I looked into this issue, I discovered that the problem doesn't stem from RTLTMPro but arises when utilizing TMP_Text.m_isRightToLeft to reverse the text order. The underline display problem occurs when enabling "Enable RTL Editor," irrespective of the font asset or language.

Is it acceptable to make a workaround to set up the RLT without reversing via TMPro?