Created attachment 184163 [details] Screenhost showing the difference between document text and preview This is the same issue as bug 152460, but for font preview in Characters dialog. Common characters like punctuation and digits use the wrong font, and because of the the preview renders text, this breaks text order as well.
Created attachment 184164 [details] Test document
Khaled Hosny committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/718af940435ae9d2ac90374e5880ecb38e96252c tdf#152533: Improve script handling in font preview It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
(In reply to خالد حسني from comment #0) > Created attachment 184163 [details] > Screenhost showing the difference between document text and preview To try to characterize the problem: The 1 is rendered using the Western-language-group font glyph in the preview, and using the RTL-CTL-language-group font glyph in the document. This may not be super-clear from the screenshot to people who are not familiar with the numerals of Amiri and Reem Kufi (especially since not everyone has Reem Kufi on their system...) This naturally also happens with Hebrew. Plus - it doesn't matter that the digit is at the end of the line, so it's not a matter of a direction-neutral character with its ambiguity, i.e. it's not a שלום. vs .שלום flipping issue. I'll attach a document using only bundled font and a couple of examples in Hebrew as well. Thanks for the fix, Khaled :-)
Created attachment 184175 [details] Test document using bundled fonts + more testcases
(In reply to Eyal Rozenberg from comment #3) > (especially since not everyone has Reem Kufi on their system...) Both fonts are bundled.
Khaled Hosny committed a patch related to this issue. It has been pushed to "libreoffice-7-5": https://git.libreoffice.org/core/commit/3e7e5dad9d8442a74a5d51dddca655b6073d0ff2 tdf#152533: Improve script handling in font preview It will be available in 7.5.0.0.beta2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.