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)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: high normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 112847 117934 134655 142236 155097 (view as bug list)
Depends on:
Blocks: RTL-UI
  Show dependency treegraph
 
Reported: 2014-01-11 08:36 UTC by ⁨خالد حسني⁩
Modified: 2024-09-30 12:39 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (47.15 KB, image/png)
2014-01-11 08:36 UTC, ⁨خالد حسني⁩
Details
Screenshot on macOS (469.12 KB, image/png)
2024-09-30 12:39 UTC, ⁨خالد حسني⁩
Details

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]
Screenshot

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:

https://gerrit.libreoffice.org/gitweb?p=core.git;a=blob;f=vcl/source/gdi/sallayout.cxx;h=30be7b152ed2490fcd75dfd9d1c3be55c7dd64ab;hb=HEAD#l652

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. ***
Comment 16 ⁨خالد حسني⁩ 2024-09-15 00:59:40 UTC
*** Bug 142236 has been marked as a duplicate of this bug. ***
Comment 17 Eyal Rozenberg 2024-09-16 14:27:42 UTC
So, is anyone still seeing this?

The tooltips I see seem fine with all of gtk3, kf5, qt5. Of course, I don't know that any glyphs are missing for me.
Comment 18 ⁨خالد حسني⁩ 2024-09-30 12:39:06 UTC
Created attachment 196795 [details]
Screenshot on macOS

I still see something similar on macOS in list style dialog when showing Arabic-Indic numbers.