Issue 105631 - IPA PGothic,IPA PMincho font can't be printed
Summary: IPA PGothic,IPA PMincho font can't be printed
Status: CLOSED DUPLICATE of issue 106833
Alias: None
Product: gsl
Classification: Code
Component: www (show other issues)
Version: current
Hardware: PC Unix, all
: P3 Trivial (vote)
Target Milestone: OOo 3.3
Assignee: philipp.lohmann
QA Contact: issues@gsl
URL:
Keywords:
Depends on: 104050
Blocks:
  Show dependency tree
 
Reported: 2009-10-06 05:21 UTC by Tomoo Nomura
Modified: 2009-12-03 17:19 UTC (History)
8 users (show)

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


Attachments
Sample document (10.74 KB, application/vnd.oasis.opendocument.text)
2009-10-06 05:22 UTC, Tomoo Nomura
no flags Details
test case with some Japanese font (23.37 KB, application/vnd.oasis.opendocument.text)
2009-10-24 23:51 UTC, henrich_d
no flags Details
ps-result for the second sample document (318.75 KB, application/postscript)
2009-10-27 10:17 UTC, hdu@apache.org
no flags Details
screenshot from a ps-viewer (79.90 KB, image/png)
2009-10-27 10:26 UTC, hdu@apache.org
no flags Details
Missing 「㔠(122.58 KB, text/plain)
2009-10-27 10:46 UTC, maho.nakata
no flags Details
Missing 「ã”〠is highlighted (122.58 KB, image/png)
2009-10-27 10:46 UTC, maho.nakata
no flags Details
missing glyph "ã”" "ãˆ" and "ゆ" is highlighted (126.06 KB, image/png)
2009-10-27 15:29 UTC, henrich_d
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Tomoo Nomura 2009-10-06 05:21:17 UTC
Writer can't print Japanese font [ã”] by IPA P Gothic or IPA P Mincho.
It, however, can do by IPA Mincho and IPA Gothic. Proportional fonts might have
some problem.
In case printing to a pdf file and printing it by a pdf viewer software, it can
do correctly. It might be OOWriter's ptinting problem.
Comment 1 Tomoo Nomura 2009-10-06 05:22:24 UTC
Created attachment 65151 [details]
Sample document
Comment 2 henrich_d 2009-10-24 23:46:06 UTC
Hi.

I'm IPAfont package maintainer in Debian. I want to clearfy that this is not
font specific issue, but OpenOffice.org's one. With some different Japanese
fonts, similar issue would happen (I'll attache test case).

And I saw that printing expert folks triaged this issue at Printing-japan
(Japanese discussions on printing under Linux) and its conclution is
OpenOffice.org embeds font data into PS file wrongly.
See
https://lists.linux-foundation.org/pipermail/printing-japan/2009-October/002465.html

With newer versions of CUPS that have PDF workflow, this bug would appear.
Comment 3 henrich_d 2009-10-24 23:51:25 UTC
Created attachment 65579 [details]
test case with some Japanese font
Comment 4 naruoga 2009-10-26 03:26:35 UTC
Hi,

I'm a member of OpenPrinting, the standardize organization of *nix printing.
Printing-Japan ML is our discussion ML in Japanese.
I'll roughly translate the e-mail henrich_d attached.


This e-mail is written by Koji Otani, implementer of the PDF workflow.

----------------------------------------------------------------
OOo make wrong PS data with embedded font, but this problem caused only in
PDF workflow.

(Translator Remark: PDF workflow is OpenPrinting's new printer workflow.
Final goal is all of applications creates PDF instead of PS, and CUPS
filters handles PDF, because PDF is light, Page-oriented, any other good
feature from printing point of view.
Currently, some distribution, especially Debian Lenny (or later) and
Ubuntu 8.10 (or later) have supported this workflow)

Problem 1.
==========
OpenOffice.org has wrong login when it creates PS with embedded fonts.
In this case, OOo embed Type 42 (Truetype) fonts, however, some glyphs
of unprinterble characters (e.g. 「ã”〠of IPA P Gothic) put with GID == 0
(for .notdef glyph only). This output is wrong.
And also Encoding is wrong. For example, when 「ã”ã€is assigned in code == 1,
Encoding[1] should be related glyph name (glyph1), but OOo put the name to
Encoding[0]. Encoding[1] leave as .notdef.


Problem 2.
==========
Ghostscript can proceed that kind wrong PS (maybe it's a kind of bug).
  ( code --> .notdef --> GID==0)
So we have no problem without PDF workflow.
In the PDF workflow, PS data with problem 1 translated to PDF by Ghostscript
without any changes about font feature, then the PDF translated to PS.
In this process, this issue caused.

PDF workflow is need newer CUPS, so this issue depends on the CUPS version.
And we only have the problem in Debian Lenny (or later) / Ubuntu 8.10 (or
later), that's why only the two distros supports PDF workflow now.
----------------------------------------------------------------
Comment 5 maho.nakata 2009-10-27 01:48:49 UTC
hdu: 

Could you please re-assign to appropriate person?

change component gsl as this is not a ja issue.

many many thanks!
 
Comment 6 hdu@apache.org 2009-10-27 10:17:48 UTC
Created attachment 65663 [details]
ps-result for the second sample document
Comment 7 hdu@apache.org 2009-10-27 10:26:20 UTC
Created attachment 65664 [details]
screenshot from a ps-viewer
Comment 8 hdu@apache.org 2009-10-27 10:37:27 UTC
I'm not sure that I understand the problem yet:
1. On which milestones was the problem confirmed? If it was DEV300_m56 or older then please check 
again with something newer (e.g. DEV300_m6x or OOO320_m0x) 
2. Does the problem exist in the ps-export I attached (created with DEV300_m60 and IPA2.03 fonts)?
3. Would the problem be visible in the screenshot of a postscript-viewer? I attached a screenshot. If the 
problems are visible there please highlight them and attach the resulting image.
Comment 9 maho.nakata 2009-10-27 10:41:50 UTC
hdu:

Thanks for your looking into this issue. Please see the .png file you attached.
In the fourth line and tenth line, two 「ã”ã€s are missing.

Please compare the fourth line and tenth line the .ps file you attached.
You will see 「ã”ã€in fourth line and tenth line.

thanks!
Comment 10 maho.nakata 2009-10-27 10:46:10 UTC
Created attachment 65665 [details]
Missing 「ã”
Comment 11 maho.nakata 2009-10-27 10:46:34 UTC
Created attachment 65666 [details]
Missing 「ã”〠is highlighted
Comment 12 maho.nakata 2009-10-27 10:50:14 UTC
hdu:
> 1. On which milestones was the problem confirmed? If it was DEV300_m56 or
older then please check 
again with something newer (e.g. DEV300_m6x or OOO320_m0x) 
sorry not for this time.

> 2. Does the problem exist in the ps-export I attached (created with DEV300_m60
and IPA2.03 fonts)?
to me, it's okay.
http://www.openoffice.org/nonav/issues/showattachment.cgi/65663/i105631_fontcheck.ps

> 3. Would the problem be visible in the screenshot of a postscript-viewer? I
attached a screenshot. If the 
problems are visible there please highlight them and attach the resulting image.

http://www.openoffice.org/nonav/issues/showattachment.cgi/65664/i105631_psviewed.png
visible, I highlighted where are the missing chars in
http://www.openoffice.org/nonav/issues/showattachment.cgi/65666/i105631_psviewed_maho.png

thanks!
Comment 13 hdu@apache.org 2009-10-27 15:06:23 UTC
So the problem ares the lines with "Encoding 0 /glyph1 put" in the postscript file. The problem is 
reproducible with the old versions such as OOo31.

AFAIK this is supposed to be prevented by 
http://hg.services.openoffice.org/DEV300/file/75b77d6c0e63/vcl/unx/source/fontmanager/fontmanager
.cxx#l3661 which seems to come directly from http://gsl.openoffice.org/source/browse/gsl/psprint/source/fontmanager/fontmanager.cxx?
r1=1.30&r2=1.31

I'm not exactly sure how this is supposed to work. Reassigning to the author.
Comment 14 henrich_d 2009-10-27 15:28:08 UTC
Hi,

I've add comment with png file that maho attached one.
Not only missing "ã”" with IPA P Gothic/Mincho but also missing "ãˆ" with VL
Gothic/VL P Gothic and MS P Mincho and "ゆ" with Sazanami Gothic.

Thanks.
Comment 15 henrich_d 2009-10-27 15:29:59 UTC
Created attachment 65680 [details]
missing glyph "ã”" "ãˆ" and "ゆ" is highlighted
Comment 16 philipp.lohmann 2009-10-27 18:39:03 UTC
target
Comment 17 naruoga 2009-10-28 15:24:32 UTC
We, OpenPrinting recommends all of applications (and all of distros) will change
their print workflow from Postscript workflow to PDF workflow.  So we hope OOo
also shift to PDF workflow.
In distros with PDF workflow already supported (e.g. Ubuntu and Debian stable),
these kind of bug will be gone and we'll have a better performance.

However, we're not sure that we have any problem to use PDF print data in
distros with PS workflow (e.g. Fedora right now).  Technically it should work
fine, but we can't know about hidden issues.

So now our rational choice is OOo (or any other applications) have a switch to
select print format.  This switch don't need UI, just packager of each distros
can be select which is suitable.

We know this proposal needs big change, so if we need another process not only
issue tracker but also some kind of feature request system, please let me know.
Comment 18 philipp.lohmann 2009-12-03 17:19:27 UTC
duplicate to 106833

*** This issue has been marked as a duplicate of 106833 ***
Comment 19 philipp.lohmann 2009-12-03 17:19:54 UTC
closing