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 Linux (All)
: high normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 112847 117934 (view as bug list)
Depends on:
Blocks: RTL-CTL
  Show dependency treegraph
 
Reported: 2014-01-11 08:36 UTC by Khaled Hosny (inactive)
Modified: 2018-10-19 00:40 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (47.15 KB, image/png)
2014-01-11 08:36 UTC, Khaled Hosny (inactive)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Khaled Hosny (inactive) 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 Khaled Hosny (inactive) 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 Khaled Hosny (inactive) 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 Khaled Hosny (inactive) 2016-09-21 07:43:55 UTC
Still an issue, though currently masked with GTK+3 because tooltips are now rendered natively.
Comment 6 Khaled Hosny (inactive) 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 Khaled Hosny (inactive) 2018-10-19 00:40:50 UTC
*** Bug 117934 has been marked as a duplicate of this bug. ***