Bug 102914 - Synthetic italic in fonts with partial coverage exported as regular in PDF
Summary: Synthetic italic in fonts with partial coverage exported as regular in PDF
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
3.5.7.2 release
Hardware: All All
: medium normal
Assignee: ⁨خالد حسني⁩
URL:
Whiteboard: target:7.5.0 inReleaseNotes:7.5
Keywords: filter:pdf
: 105699 (view as bug list)
Depends on:
Blocks: Font-Substitution PDF-Export Arabic-and-Farsi CTL Language-Grouping
  Show dependency treegraph
 
Reported: 2016-10-01 17:46 UTC by yousifjkadom
Modified: 2024-08-03 19:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
docx-italic-Arabic (4.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-10-01 17:46 UTC, yousifjkadom
Details
PDF-italic-Arabic (24.19 KB, application/pdf)
2016-10-01 17:48 UTC, yousifjkadom
Details
NewExample.docx (4.25 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-02-02 10:11 UTC, yousifjkadom
Details
NewExample.pdf (40.90 KB, application/pdf)
2017-02-02 10:12 UTC, yousifjkadom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yousifjkadom 2016-10-01 17:46:03 UTC
Created attachment 127767 [details]
docx-italic-Arabic

Hi. I detect a bug in LibreOffice version 5.1.5.2 on Fedora 24 X64.

When I write a document by LibreOffice containing Arabic characters in ITALIC (sloping) font, then the resulted PDF that generated by "Export to PDF" option in LibreOffice will show contents as if it was no any italic fonts contents !! I mean that exporter does not recognize italic for Arabic contents.

I attached 2 files:

- docx file (docx-italic-Arabic) which has contents in Arabic & ALL being in italic font.
- PDF resulted from exportation of docx. file to PDF. Look how contents appear in PDF in non-italic font.

Please notice the following:

1) This issue does not effect Latin characters. I already test English with italic font & every thing is normal.

2) I do not know if this bug existing in version 5.2.2 of LibreOffice because it is still not available in Fedora repositories.

3) I can not test this issue on Windows because "italic Arabic" already have a bug on Windows BUT NOT ON LINUX. Please see bug 87532

4) Again bug 87532 only effect Windows NOT LINUX.
Comment 1 yousifjkadom 2016-10-01 17:48:43 UTC
Created attachment 127768 [details]
PDF-italic-Arabic
Comment 2 yousifjkadom 2016-10-03 10:03:20 UTC Comment hidden (no-value)
Comment 3 Yousuf Philips (jay) (retired) 2016-10-06 02:18:50 UTC
So this issue only happens with text that uses the substitution/fallback arabic font for rendering, but doesnt happen with actual arabic fonts like Droid Arabic Naskh, mry_KacstQurn, and KacstQurn.

Version: 5.3.0.0.alpha0+
Build ID: f309531cfe1d6a1b6ea1306d45ed3e121145bc5f
CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-10-04_03:52:18
Locale: en-US (en_US.UTF-8); Calc: group
Comment 4 yousifjkadom 2017-02-02 10:10:50 UTC
Hi. I test it on Windows 7 SP1 X64 OS with version 5.3.0 fresh release LibreOffice.

Open attachment "NewExample.docx" it contain from above to down (all with italic):
- Arial
-Time new Roman
- Arabic transperant
- Simplified Arabic
- Traditional Arabic

Now open attachment "NewExample.pdf" Look that both arial & time new Roman still effected by this bug while other Arabic fonts Not affected by it.

Please your kind fix !
Comment 5 yousifjkadom 2017-02-02 10:11:31 UTC
Created attachment 130838 [details]
NewExample.docx
Comment 6 yousifjkadom 2017-02-02 10:12:17 UTC
Created attachment 130839 [details]
NewExample.pdf
Comment 7 QA Administrators 2018-11-05 03:44:25 UTC Comment hidden (noise)
Comment 8 yousifjkadom 2018-11-09 04:17:53 UTC
Hi. I test this issue on LO version 6.1.3.2 (fresh version) as AppImage downloaded from LO official site.

Bug still existing without any improvement & whether document is docx. or odt.

Output PDF still "ignore" italic format.
Comment 9 ⁨خالد حسني⁩ 2018-11-09 11:16:43 UTC
This only happens with a handful of Microsoft fonts (and possibly similar fonts) that has an italic fonts with partial character coverage compared to the Latin, specifically the italic styles of these fonts do not support Arabic and LibreOffice is failing to synthesize italic for thee unsupported characters when exporting to PDF.
Comment 10 yousifjkadom 2018-11-13 22:29:20 UTC
@Khaled Hosny

Do you mean that it is impossible to fix this bug ?
Comment 11 ⁨خالد حسني⁩ 2018-11-15 00:22:24 UTC
(In reply to yousifjkadom from comment #10)
> @Khaled Hosny
> 
> Do you mean that it is impossible to fix this bug ?

No, it was just a clarification, since the bug description was too general than the actual issue. Font that has italic Arabic work, and fonts that has no italic at all also work. Hopefully this will help someone in finding the root of the issue.
Comment 12 QA Administrators 2019-11-16 03:40:52 UTC Comment hidden (noise)
Comment 13 yousifjkadom 2020-08-24 14:01:08 UTC
I tested this bug on Libre Office version 7.0.0.3 from FlatHub & still existing without any improvement.
Comment 14 QA Administrators 2022-08-25 03:43:02 UTC Comment hidden (noise)
Comment 15 yousifjkadom 2022-08-26 10:27:00 UTC
Hi. I tested this issue with version 7.4.0.3 of LibreOffice (flatpak package installed from FlatHub). 

Unfortunately, this bug is still existing without any fix or improvement!

I will change version for this issue from 3.5.7.2 into 7.4.0.3
Comment 16 yousifjkadom 2022-08-26 14:32:39 UTC
I revert version to 3.5.7.2 as it was already set. Sorry.
Comment 17 ⁨خالد حسني⁩ 2022-11-27 01:07:31 UTC
*** Bug 105699 has been marked as a duplicate of this bug. ***
Comment 18 Commit Notification 2022-11-27 05:01:39 UTC
Khaled Hosny committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/521ba0f495919022a77a189c52f632baef02a05c

tdf#102914: fix artificial italic of fallback fonts in PDF export

It will be available in 7.5.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.
Comment 19 Commit Notification 2022-11-27 05:01:47 UTC
Khaled Hosny committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ae2d1315766581259756c819f0227270d344f4d4

tdf#102914: keep font attributes for the substituted fallback font

It will be available in 7.5.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.
Comment 20 Stéphane Guillou (stragu) 2022-12-08 14:32:26 UTC
Fix verified in:

Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: ad085990b8073a122ac5222e5220f8f1d6826dcf
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Thanks Khaled!