Open mtodkari opened 3 years ago
When the directionality of the TextBox
is set to RTL, it renders as expected (although that is not required for Arabic).
There is also a list of supported scripts by WPF, see https://docs.microsoft.com/en-us/dotnet/desktop/wpf/advanced/globalization-for-wpf?view=netframeworkdesktop-4.8#international-text.
@miloush thank you for your response. We cannot use FlowDirection="RighToLeft"
because that affects the display direction in English as well.
Arabic and Hebrew RTL are correctly handled by WPF and do not need any special formatting. Thaana should be handled similarly too.
https://github.com/dotnet/wpf/blob/bc968b3127f12031534e2e0674278314ec558744/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextBuilder.cs#L1135 Maybe Thaana just needs to be added to _IsRTL.
winver
) Windows 10Security issues and bugs should be reported privately, learn more via our responsible disclosure guidelines.
Problem description: When inputting certain right-to-left language scripts in a WPF text box with an English OS, the characters are reversed.
Issue is reproducible with certain right-to-left languages, like Dhivehi/Thaana and Uyghur/Uighur Arabic, but not others like Hebrew and Arabic.
Actual behavior: Reversed text (incorrect)
Expected behavior: Correct Text:
Minimal repro:
ތާނަ
from Wiki page,