Bug 73494 - Font fallback issue with text of mixed directionality in the UI
Summary: Font fallback issue with text of mixed directionality in the UI
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: Other All
: high normal
Assignee: Not Assigned
: 112847 117934 134655 155097 (view as bug list)
Depends on:
Blocks: RTL-UI
  Show dependency treegraph
Reported: 2014-01-11 08:36 UTC by ⁨خالد حسني⁩
Modified: 2023-09-29 15:21 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:

Screenshot (47.15 KB, image/png)
2014-01-11 08:36 UTC, ⁨خالد حسني⁩

Note You need to log in before you can comment on or make changes to this bug.
Description ⁨خالد حسني⁩ 2014-01-11 08:36:19 UTC
Created attachment 91852 [details]

My UI font lacks Latin characters, so those will be taken from fallback font, but it seems there is a bug in the fallback code that causes over-rendering of fallback text.

As seen in the screenshot, a C character (from Ctrl) is drawn over the space between the Arabic and non-Arabic text.

If I change the UI font to a one that supports Latin, the issue disappears, the issue also does not appear in the text area of Writer, only in the UI.
Comment 1 ⁨خالد حسني⁩ 2014-01-17 22:56:54 UTC
For the poor sole that would be looking into this in the future, the proplem seems to be in this if block:


Changing adding 1 to aPosVector.begin() in the RTL branch fixes the issue in the tooltip but breaks RTL font fallback in the text area. The whole fallback layout code is total crack, so I don’t have the slightest idea what is going on.
Comment 2 Joel Madero 2015-05-02 15:44:36 UTC Comment hidden (obsolete)
Comment 3 ⁨خالد حسني⁩ 2015-05-02 16:26:20 UTC
Still an issue.
Comment 4 QA Administrators 2016-09-20 09:38:21 UTC Comment hidden (obsolete)
Comment 5 ⁨خالد حسني⁩ 2016-09-21 07:43:55 UTC
Still an issue, though currently masked with GTK+3 because tooltips are now rendered natively.
Comment 6 ⁨خالد حسني⁩ 2017-10-06 00:12:53 UTC
*** Bug 112847 has been marked as a duplicate of this bug. ***
Comment 7 Eyal Rozenberg 2018-09-17 18:04:31 UTC
Can you provide reproduction instructions for people without special/weird fonts installed on their system? And a document + relevant font files as attachment to go along with these instructions?
Comment 8 ⁨خالد حسني⁩ 2018-10-19 00:40:50 UTC
*** Bug 117934 has been marked as a duplicate of this bug. ***
Comment 9 QA Administrators 2019-10-20 02:33:29 UTC Comment hidden (noise)
Comment 10 QA Administrators 2022-01-09 03:41:56 UTC Comment hidden (noise, obsolete)
Comment 11 ⁨خالد حسني⁩ 2022-08-18 15:09:45 UTC Comment hidden (obsolete)
Comment 12 ⁨خالد حسني⁩ 2022-08-20 04:38:35 UTC
https://git.libreoffice.org/core/+/9c2eb9c872bb10049fcb0217842b3bb849c27a22 (I had a typo in the issue number)
Comment 13 ⁨خالد حسني⁩ 2022-08-21 12:30:12 UTC
I’m not sure anymore if my fix actually fixes the issue.
Comment 14 ⁨خالد حسني⁩ 2022-09-29 18:57:08 UTC
*** Bug 134655 has been marked as a duplicate of this bug. ***
Comment 15 ⁨خالد حسني⁩ 2023-05-03 22:07:24 UTC
*** Bug 155097 has been marked as a duplicate of this bug. ***