Apache OpenOffice (AOO) Bugzilla – Issue 115618
[regression] Pdf export: in some fonts Hebrew becomes Gibberish
Last modified: 2017-05-20 10:22:43 UTC
Export to pdf of some fonts from Culmus family causes the pdf to be unreadable. This is a regression, as in 3.2.1 (ooo320m18) the export is OK. This happens only in some fonts from Culmus (not all of them), which is available only for LInux, so this bug is marked as Linux issue, although it might happen also in Win, if the fonts are installed there. http://culmus.sourceforge.net/ wrong exported fonts are: Aharoni CLM, Drugulin CLM, Ellinia CLM, Frank Ruehl CLM, Miriam Mono CLM, Nachlieli CLM and Yehuda CLM.
Created attachment 75022 [details] origianl odt file with hebrew strings of the fonts
Created attachment 75023 [details] export to pdf by 3.3-rc5 - unreadable
Created attachment 75024 [details] export to pdf by 3.2.1 (oo320m18) - OK
@ hi: Please have a look.
Confirmed, but too late for 3.3 Thereofore set to 3.4
It seems that only Type 1 fonts in Culmus package are affected by the issue, while TrueType fonts perform ok.
The first few hours of debugging indicate that this regression was probably introduced by issue 107254. Especially its variable pUnicodesPerGlyphs is suspicious as it gets calculated as being negative in RTL runs.
Fixed in CWS.
@hdu: is the fix safe enough to be backported to 3.3? Broken Hebrew PDF production is a rather grave issue, and on my opinion it could severely affect Hebrew users. @kaplan: what do you think? Frank Ruehl is still Type1, and I think people use it extensively. There are several other fonts too.
Well, I do agree that having this included in 3.3 will be the best option for the Hebrew users. Otherwise, I'd like to add this issue to the release notes (or errata to be exact).
@hdu - to which CWS did you commit the fix? I couldn't find it.
@hi: please verify in CWS pdffix03 testing hints: Make sure you have the Culmus fonts installed as Type1 fonts
BTW, the CWS isn't looked to be in the Mercurial Repository: http://hg.services.openoffice.org/cws/pdffix03 links to the main page of OpenOffice Mercurial Repository.
Verified with cws pdffix03 = OK
Adjusting target
I ran across the same problem - text in Ellinia CLM font (a stylized Hebrew heading font) comes out gibberish when exported to PDF. I'm happy you already have a fix for this. In the meantime, until the fix is included, I found a workaround, sort of - you can "print to file" and generate a correct Postscript file. You can then convert this Postscript file to PDF if you wish (for me, Postscript is good enough anyway).