RTLTMPro
RTLTMPro copied to clipboard
Solved Issue #124 The underlines are not correctly displayed in RTL
trafficstars
Fixed the underline displaying issue by self-implementing reversing the text instead of reversing with TMPro.
Detailed implementation:
- In RTLTextMeshPro.cs, removed all lines setting
isRightToLeftTextand added anenableRTLboolean member to replace it. - In RTLTextMeshProEditor.cs, rewrote
DrawTextInput()to handle RTL text without setting values form_IsRightToLeftPropandm_RtlText. - Deleted line 130
finalText.Reverse()in RTLTestMeshPro.cs since TMPro no longer reverses the text. - Rewrote the
RichTextFixer.Fix(output)method to correct the order of RichTextTags by swapping the positions of<tag>and</tag>.
I also added a scene named "Underline" for reference.