[Libreoffice-bugs] [Bug 119346] New: Rotated Arabic text is displaced in PDF when substitute glyphs are used

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Aug 18 15:02:42 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=119346

            Bug ID: 119346
           Summary: Rotated Arabic text is displaced in PDF when
                    substitute glyphs are used
           Product: LibreOffice
           Version: 5.4.6.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Printing and PDF export
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: vaaydayaasra at gmail.com

Description:
In this example, I created a document with a few Arabic-script characters
(U+08A2, U+08A3 & U+08A4), which were quite recently added to Unicode for
various Arabic-script African languages such as Fulfulde. The font I had used
in the rest of the document was DejaVu Sans, so I used that font setting even
for these characters. In reality, these glyphs are not found in DejaVu Sans but
had to be substituted from another font, in my case Scheherazade (from
fonts-sil-scheherazade, available through packages.sil.org). After rotating the
letters by 90 degrees, everything looked fine on the screen but when I created
a PDF, everything was displaced about one inch upwards and one inch to the
left. See the attached screenshot, where everything looks fine, and the PDF
where all the letters are displaced.

If I change the font setting for this text to Scheherazade, everything looks
fine even in a generated PDF. So apparently LibreOffice gets confused by the
different font metrics of the two fonts, the one selected by the user and the
one used as the real source for the glyphs.

This bug was first reported on Launchpad for LO 5.4.6.2 on Ubuntu 17.10 at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1774244 . After my
initial report, I have upgraded to LO 6.0.3.2 and can still reproduce the
problem. Another user on Launchpad confirmed the bug on LO 6.0.3.2 and 6.1.0.3
on Ubuntu 18.04, as well.

Steps to Reproduce:
1. In a new Writer document, type Arabic characters that are not present in the
default font (in my example "ࢢࢣࢤ").
2. Select the text and rotate it by 90 degrees through the Font properties
dialog.
3. Generate a PDF.

Actual Results:
In the generated PDF, the text is displaced one inch to the left and one inch
upwards. In Writer everything looks fine.

Expected Results:
The generated PDF should look the same as the document view in Writer.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.0.3.2
Build ID: 1:6.0.3-0ubuntu1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180818/75b305d1/attachment.html>


More information about the Libreoffice-bugs mailing list