Issue 110387 - otf font can not be printed in non-english locale
Summary: otf font can not be printed in non-english locale
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: printing (show other issues)
Version: OOo 3.2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks: 109046
  Show dependency tree
 
Reported: 2010-03-25 14:13 UTC by parsival
Modified: 2017-05-20 11:41 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
No otf fonts used, printed with cups-pdf (25.82 KB, text/plain)
2010-03-25 14:14 UTC, parsival
no flags Details
No otf fonts used, build-in OO-PDF (26.85 KB, text/plain)
2010-03-25 14:15 UTC, parsival
no flags Details
otf fonts DELICIOUS used, blank pdf, printed with cups-pdf (890 bytes, text/plain)
2010-03-25 14:17 UTC, parsival
no flags Details
otf fonts DELICIOUS used, build-in OO-PDF (34.94 KB, text/plain)
2010-03-25 14:17 UTC, parsival
no flags Details
otf fonts MISO used, blank pdf, printed with cups-pdf (885 bytes, text/plain)
2010-03-25 14:18 UTC, parsival
no flags Details
otf fonts MISO used, build-in OO-PDF (35.95 KB, text/plain)
2010-03-25 14:18 UTC, parsival
no flags Details
file which use delicious otf font (23.85 KB, application/vnd.oasis.opendocument.text)
2010-03-29 16:17 UTC, jbf.faure
no flags Details
pdf export with delicious otf font integrated (12.83 KB, application/pdf)
2010-03-29 16:18 UTC, jbf.faure
no flags Details
the ODT File (9.38 KB, text/plain)
2010-03-29 22:11 UTC, parsival
no flags Details
My cups-pdf result (21.83 KB, application/pdf)
2010-03-30 14:56 UTC, h.ilter
no flags Details
My pdf-export result (23.96 KB, application/pdf)
2010-03-30 14:57 UTC, h.ilter
no flags Details
Postscript-file of the OTF-Test-Document (77.69 KB, text/plain)
2010-04-01 13:55 UTC, parsival
no flags Details
Test with a text in Linux Libertine (27.98 KB, text/plain)
2010-04-01 13:56 UTC, parsival
no flags Details
No otf fonts used, printed with cups-pdf and print-to-file (63.36 KB, text/plain)
2010-04-01 13:57 UTC, parsival
no flags Details
ps-file made with cups-pdf-function (printing in CWS fkw140) (61.10 KB, text/plain)
2010-04-15 12:00 UTC, parsival
no flags Details
direct printing to ps-file (77.71 KB, text/plain)
2010-04-15 12:01 UTC, parsival
no flags Details
pdf-file made with CWS fkw140 build-in-pdf-function (33.73 KB, text/plain)
2010-04-15 12:02 UTC, parsival
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description parsival 2010-03-25 14:13:27 UTC
A document, which contains opentype fonts, can not be printed per printer or per
cups-pdf. There arrives only one blank white paper (1 page): No text at all.
Cups mentions a problem.

The build-in pdf-function produces a pdf ("OO-PDF") included the text in
opentype font. But the OO-PDF can not be printed by Adobe Reader ("The document
could not be printed"). PDFs from other applications like Scribus can be
printed. Evince Document Viewer 2.28.1 is able to print the OO-PDF, but there is
other known problem with evince in linux karmic (it shrinks the printed
pagesize), so I can not use it.

1. This issue happens only in the Linux-Version of OO 3.2. There is no problem
in the Windows XP-Version.
2. I use Linux Mint/8 Helena (based on ubuntu karmic).
3. I use a Dell 1320c network printer with the driver FX DocuPrint C525 A-AP v1.0.  
4. I installed OO 3.2 manually from here:
http://download.services.openoffice.org/files/localized/de/3.2.0/OOo_3.2.0_LinuxIntel_install_de_deb.tar.gz
5. The opentype font - named Delicious (a very nice free font:
http://www.josbuivenga.demon.nl/delicious.html ) - is correct installed.
6. I tried it also with another opentype font named Miso.
7. Scribus 3.6 or GIMP do not show this issue.
8. I reinstalled the whole system twice.
Comment 1 parsival 2010-03-25 14:14:58 UTC
Created attachment 68542 [details]
No otf fonts used, printed with cups-pdf
Comment 2 parsival 2010-03-25 14:15:55 UTC
Created attachment 68543 [details]
No otf fonts used, build-in OO-PDF
Comment 3 parsival 2010-03-25 14:17:06 UTC
Created attachment 68544 [details]
otf fonts DELICIOUS used, blank pdf, printed with cups-pdf
Comment 4 parsival 2010-03-25 14:17:50 UTC
Created attachment 68545 [details]
otf fonts DELICIOUS used, build-in OO-PDF
Comment 5 parsival 2010-03-25 14:18:23 UTC
Created attachment 68546 [details]
otf fonts MISO used, blank pdf, printed with cups-pdf
Comment 6 parsival 2010-03-25 14:18:51 UTC
Created attachment 68547 [details]
otf fonts MISO used, build-in OO-PDF
Comment 7 jbf.faure 2010-03-28 18:38:26 UTC
I confirm the problem with OOo 3.2.0 FR under Ubuntu 8.04.
I downloaded Delicious OpenType font and created a text document with some dummy
text. When I print the document from OpenOffice.org (File > Print) I obtain only
a blank page and the print job stays in the print queue with state "in progress"
("traitement en cours" in French).
I exported the text doc as pdf, opened it with Evince and printed without problem.
Printer is a Canon Pixma MP270 accessed through the local network.

Regards. JBF
Comment 8 h.ilter 2010-03-29 15:05:23 UTC
Could not reproduce with own created document in opensuse
Please provide also the odt file. Thanks.
Comment 9 h.ilter 2010-03-29 15:06:16 UTC
cc myself
Comment 10 jbf.faure 2010-03-29 16:17:36 UTC
Created attachment 68621 [details]
file which use delicious otf font
Comment 11 jbf.faure 2010-03-29 16:18:57 UTC
Created attachment 68622 [details]
pdf export with delicious otf font integrated
Comment 12 jbf.faure 2010-03-29 16:23:24 UTC
Attached both files I made to test this issue, the odt and its export to pdf.

Regards. JBF
Comment 13 parsival 2010-03-29 22:10:27 UTC
Okay, I noticed something: The printer has to be connected to show the failure
message (german: "Druck-Fehler. Es gibt ein Problem mit der Verarbeitung des
Dokuments "OTF-Test Delicious" (job ##)."). I tried to print the document for
another time, but I couldn't be sent to the printer because the printer wasn't
switched on. When I switched the printer on, the failure message appeared.
1. Maybe it's something with the communication or how the document is sent to
the printer, because it needs to communicate with the printer to show the
failure notice.
2. In which directory is your font installed in opensuse?

I'll attach the original odt file, but I don't think it is a problem with the
document but maybe where the font is or is not found in the system.
Comment 14 parsival 2010-03-29 22:11:44 UTC
Created attachment 68625 [details]
the ODT File
Comment 15 h.ilter 2010-03-30 14:55:28 UTC
OK, I'll attach my both results; cups-pdf print & pdf-export
My fonts directory: /usr/share/fonts
Maybe I have to find a ubuntu machine?
Comment 16 h.ilter 2010-03-30 14:56:49 UTC
Created attachment 68638 [details]
My cups-pdf result
Comment 17 h.ilter 2010-03-30 14:57:44 UTC
Created attachment 68639 [details]
My pdf-export result
Comment 18 jbf.faure 2010-03-30 16:06:50 UTC
For my tests I installed the font in ~/.fonts. After having restarted OOo it
found the font without problem.
Same problem if I install the font in /usr/share/fonts and update the font cache.

Regards.JBF
Comment 19 jbf.faure 2010-03-30 16:37:57 UTC
It seems there is a problem with delicious font : I assigned Delicious Roman to
standard style but when I reopen the file and do Format > Character OOo says
that the font is Delicious Regular and that "this font will simulated or the
closest matching style will be used". Same problem with Dev300_m75.

Regards. JBF
Comment 20 h.ilter 2010-03-31 13:34:22 UTC
@HDU: Please take a look. Thanks.
Comment 21 parsival 2010-04-01 13:54:09 UTC
@jbf: I confirm this problem. The following message is shown: "Dieser
Schriftstil wird nachgebildet oder der am besten passende Stil wird verwendet."
= "this font will simulated or the closest matching style will be used".

But: It's not a problem of the font Delicious. I receive the same printing
problem with other otf-fonts like "Linux Libertine O" (in the otf-version).

I will attach the ps-files (print to file). Maybe the can help by comparison
with ps-files from other linux systems like opensuse.

Best regards
Comment 22 parsival 2010-04-01 13:55:42 UTC
Created attachment 68691 [details]
Postscript-file of the OTF-Test-Document
Comment 23 parsival 2010-04-01 13:56:35 UTC
Created attachment 68692 [details]
Test with a text in Linux Libertine
Comment 24 parsival 2010-04-01 13:57:11 UTC
Created attachment 68693 [details]
No otf fonts used, printed with cups-pdf and print-to-file
Comment 25 parsival 2010-04-06 08:43:04 UTC
I tested opensuse 11.2 with openoffice.org 3.2 now. Same result: no printing of
documents which contain otf fonts.
@hi: Could you please give me more information about your system? Which versions
of opensuse and cups are running?
Best Regards
Comment 26 h.ilter 2010-04-06 09:42:49 UTC
@parsival: Sure, my opensuse is 11.0 and cups 1.3.7
Would be interesting if you have the same configuration like me.

@PL: Please take a look to the both OTF*.ps files. Thanks.

Regards
HI
Comment 27 philipp.lohmann 2010-04-12 09:50:48 UTC
@hdu: please have a look
Comment 28 hdu@apache.org 2010-04-12 10:00:20 UTC
Indeed, the font checker complains about
   "Bad BlueScale entry in PostScript Private dictionary"
caused by the entry
   "/BlueScale 0,328541 def"
whereas it should use the dot instead of the comma:
  "/BlueScale 0.328541 def"
So it seems that a libc tries to be too smart with the locale when doing a printf.

@parsival: could you test this theory by setting an environment variable
    export LC_NUMERIC="en_US.UTF-8"
and starting soffice from that command line? Make sure that no other instances of OOo are running.
Comment 29 hdu@apache.org 2010-04-12 16:57:26 UTC
Fixed in CWS fwk140.
Comment 30 parsival 2010-04-12 21:32:41 UTC
@hdu: great! You made my day ;) I tried so many different settings before and
couldn't figure out, what was going on. 
Now, I tested it like you said. I set up the environment variable with the command 
export LC_NUMERIC="en_US.UTF- 8"
and started openoffice from that command line. 
It worked out perfect for me. The document was printed.

@all: thanks for you awesome work on openoffice!
Comment 31 hdu@apache.org 2010-04-13 08:04:31 UTC
@parsival: thanks for checking that the problem and its solution are fully understood. The fix will get into 
OOo321. While we are at it: What did "locale -a" report before the LC_NUMERIC workaround? Which 
language of OOo was installed? Also do not forget to test the release candidate when it comes out.
Comment 32 parsival 2010-04-14 07:09:20 UTC
@hdu:  I don't know what "locale -a" would have reported before I typed in the
workaround for the first time, but the recent result (before setting up the
enviroment variable with the command export LC_NUMERIC="en_US.UTF- 8" ) is:

hotchip@minirechner ~ $ locale -a
C
de_AT.utf8
de_BE.utf8
de_CH.utf8
de_DE.utf8
de_LI.utf8
de_LU.utf8
en_AG
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX


It's the same result as on my desktop-system where I have not set up the
enviroment variable yet.

I installed the german version of OOo 3.2.0 from here:
http://download.services.openoffice.org/files/localized/de/3.2.0/OOo_3.2.0_LinuxIntel_install_de_deb.tar.gz

Sure, I will test the release candidate asap.
Comment 33 hdu@apache.org 2010-04-14 14:01:31 UTC
@es: please verify in CWS fwk140
Testing hints:
- use the attached font
- use a locale and an install set of a language where the fractional separator is not a dot, e.g. in de or fr 
locales the value 1.2 is written as 1,2
Comment 34 philipp.lohmann 2010-04-14 16:37:24 UTC
linux install set available for testing at

ftp://qa-upload.services.openoffice.org/fwk140/linux-intel/OOo_3.2.1_100414_unxlngi6_install.tar.gz
Comment 35 eric.savary 2010-04-14 17:31:04 UTC
@parsival: can you please verify ASAP (we are on time constrains for 3.2.1) that
this problem is fixed in the CWS (see ftp hyperlink posted in last comment)?
Thank You!
Comment 36 parsival 2010-04-14 19:28:27 UTC
@es: Sure, I would, but how does it work? I never tried such a development
version. I wasn't able to find a introduction in testing these builds.
@all: Could anybody please explain to me what to do?
Comment 37 hdu@apache.org 2010-04-15 07:11:33 UTC
1. download the tarball using the link PL provided
2. open a terminal
3. run "mkdir a_directory_somewhere"
4. run "cd a_directory_somewhere"
5. run "tar xvzf tarball_file.tgz" (after you replaced tarball_file.tgz with the filename of the file you 
downloaded)
6. run "find . -name soffice"
7. start that soffice just found
8. do your tests
Comment 38 parsival 2010-04-15 11:58:10 UTC
@hdu: thanks for your help

@es:
It works.
I tested the CWS fwk140 and was able to print directly and with the
cups-pdf-function.
I tested it also on my desktop-system.
Both systems are Ubuntu-based (Karmic): Linux mint 8; german enviroment.
I will attach the test-files.
Comment 39 parsival 2010-04-15 12:00:29 UTC
Created attachment 68940 [details]
ps-file made with cups-pdf-function (printing in CWS fkw140)
Comment 40 parsival 2010-04-15 12:01:19 UTC
Created attachment 68941 [details]
direct printing to ps-file
Comment 41 parsival 2010-04-15 12:02:16 UTC
Created attachment 68942 [details]
pdf-file made with CWS fkw140 build-in-pdf-function
Comment 42 thorsten.martens 2010-04-15 12:56:48 UTC
marked issue as verified (as it was done by parsival) 
Comment 43 eric.savary 2010-04-15 14:58:53 UTC
@parsival: Thanx a lot for verifying this! :)