Open sharpninja opened 4 years ago
I would just like to point out that the sample text in those images is actually Coptic, not Cyrillic.
@ddalp Do you know what the gap is here between XAML's handling and what's happening with Notepad? I would assume they're both rendering with richedit but one doesn't work and one does.
@chrisglein XAML uses DWrite for font binding/fallback and wordpad uses GDI. RichEdit also has different code path for Dwrite and GDI font handling too. Usually we debug XAML side font fallback logic(start with GetRunFontFaceId function) to see if there is anything wrong on our side. And sometimes we need to engage RichEdit team to debug it together. Since this font seems to be RTL language, it seems more an issue on RichEdit side I think.
@ddalp
Since this font seems to be RTL language...
I can assure you that the font (and that script) is not a RTL language.
I noticed that the display issues occurred only in words that contained a jenkim/accent, which makes me suspect that. If it helps, the Unicode being used for the accent is \u0300\u200D
.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is still present. Would like to reiterate that the issue only appears to occur in words that contain a combining accent with a zero width joiner.
Describe the bug Related Issue on the Quick-Pad Repository
Please see the linked issue for full details.
TL;DR; Many Unicode characters render incorrectly in TextBox and RichEditBox. This is consistent across three different apps (NotepadX, Notepads, Quick Pad) using TextBox and RichEditbox. Some of the Cyrillic characters display correctly, some display as a box with accents. The linked issue has screen shots showing the same documents being rendered in Notepad, IE11, Edge, KDE Kate, NotepadX, Notepads, Quick Pad and Word Pad.
Of those, only Edge, Notepad and KDE Kate consistently detect encoding correctly in all cases and display the font correctly. Quick Pad always detects the correct encoding, but due to the font rendering issues never shows it correctly in either TextBox or RichEditBox.
Steps to reproduce the bug
Steps to reproduce the behavior:
Expected behavior Rendering of
CyrillicCoptic text should match known good functionality in Notepad.Screenshots
Version Info Windows 10 Insider, 20H1, 19555.1001
Additional context If downloading and building the Quick Pad app to view the documents, use this commit.