Issue 82703 - AQUA: PDF export fails when the document contains non-subsettable fonts
Summary: AQUA: PDF export fails when the document contains non-subsettable fonts
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: MacOSX (show other issues)
Version: 680m233
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: OOo 2.4
Assignee: hdu@apache.org
QA Contact: issues@porting
URL:
Keywords: aqua
Depends on:
Blocks:
 
Reported: 2007-10-17 10:51 UTC by nazcafan
Modified: 2008-01-17 09:44 UTC (History)
1 user (show)

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


Attachments
odt file containing french and japanese (10.53 KB, application/vnd.oasis.opendocument.text)
2007-10-17 10:52 UTC, nazcafan
no flags Details
Readable output produced by pdf export from OO.o 2.2 on linux debian platform (49.93 KB, application/pdf)
2007-10-17 10:55 UTC, nazcafan
no flags Details
unreadable (japanese) output produced by pdf export on aqua version (21.09 KB, application/pdf)
2007-10-17 10:58 UTC, nazcafan
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description nazcafan 2007-10-17 10:51:51 UTC
Hello

I am writing a document with French and Japanese text, I noticed that exporting
it to pdf yields a pdf file where the japanese text is unreadable (maybe due to
a font mismatch ?).

I also opened the document with a linux OO.o 2.2 and exported it to pdf and the
japanese text is then readable  ont the resulting pdf file either on the linux
box and the OS X machine (seems there is a font substitution for Japanese)

I can provide odt and pdf file but can not find how to submit them through the
web interface for the moment
Comment 1 nazcafan 2007-10-17 10:52:56 UTC
Created attachment 48964 [details]
odt file containing french and japanese
Comment 2 nazcafan 2007-10-17 10:55:48 UTC
Created attachment 48965 [details]
Readable output produced by pdf export from OO.o 2.2 on linux debian platform
Comment 3 nazcafan 2007-10-17 10:58:41 UTC
Created attachment 48966 [details]
unreadable (japanese) output produced by pdf export on aqua version
Comment 4 shaunmcdonald131 2007-10-17 22:48:58 UTC
Does the same occur in the X11 version of ooo on the Mac?


Could this be similar to http://www.openoffice.org/issues/show_bug.cgi?id=81286 ? 
Or is it completely different?
Comment 5 shaunmcdonald131 2007-10-17 22:50:16 UTC
adding keyword
Comment 6 nazcafan 2007-10-18 07:16:24 UTC
I don't think it is the same bug as
http://www.openoffice.org/issues/show_bug.cgi?id=81286  since the author of the
later claims that both files look the same in preview whereas in my case, the
output is not readable either in preview, evince or acrobat reader (linux and
aqua version)
Comment 7 hdu@apache.org 2007-10-18 08:03:51 UTC
reassigning
Comment 8 hdu@apache.org 2007-10-18 08:20:48 UTC
accepting

Subsetting "Hiragino Kaku Gothic Pro W6" seems to fail.
Comment 9 hdu@apache.org 2007-10-18 09:28:21 UTC
Subsetting PS-Opentype fonts is not yet implemented (issue 43026) and "Hiragino
Kaku Gothic Pro W6" is one of those. As a temporary workaround could you use the
Osaka font? Eventually enable the bold attribute to match the weight of the W6 font.

*** This issue has been marked as a duplicate of 43026 ***
Comment 10 hdu@apache.org 2007-10-18 09:31:20 UTC
Duplicate to issue 43029 instead => reopening
Comment 11 hdu@apache.org 2007-10-18 09:34:43 UTC
Fixing the duplicate issue id and adjusting issue summary to the root cause.

*** This issue has been marked as a duplicate of 43029 ***
Comment 12 hdu@apache.org 2007-10-22 08:24:47 UTC
Though issue 43029 is the real root cause on why the font was not subsetted, the font should not have 
been marked as "subsettable" when this is not yet the case. The problem is that during font enumeration 
the required info is not directly available and doing the obvious thing could increase the startup time 
considerably.
Comment 13 hdu@apache.org 2007-10-22 08:25:07 UTC
.
Comment 14 hdu@apache.org 2007-10-29 14:43:58 UTC
Issue 43029 is already covering the root cause of the problem. The remaining problem is that font 
subsetting is not disabled for fonts where subsetting is not implemented yet even though this operation is 
bound to fail. This remaining problem gets fixed in CWS aquavcl04. Also adjusting the issue summary line 
to this remaining problem.
Comment 15 hdu@apache.org 2007-12-11 10:35:42 UTC
@PL: please review in CWS aquavcl04 (vcl/aqua/source/gdi/salatsuifontutils.cxx 1.9.2.1)
Comment 16 philipp.lohmann 2007-12-11 11:02:54 UTC
fixed but failed ? doesn't quite work for me.
Comment 17 philipp.lohmann 2007-12-11 11:03:51 UTC
reopen
Comment 18 philipp.lohmann 2007-12-11 12:06:21 UTC
ok, the font subsetting problem is solved, but the exported file still looks
like crap due to the glyph fallback thing.
Comment 19 philipp.lohmann 2007-12-11 12:06:47 UTC
verified
Comment 20 hdu@apache.org 2008-01-17 09:44:15 UTC
Got into OOH680_m2 => closing