Issue 79187 - Aqua: Type1 fonts not yet supported in PDF Export
Summary: Aqua: Type1 fonts not yet supported in PDF Export
Status: ACCEPTED
Alias: None
Product: porting
Classification: Code
Component: MacOSX (show other issues)
Version: OOo 2.2.1
Hardware: PowerPC (PPC) Mac OS X, all
: P3 Trivial with 2 votes (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: aqua
Depends on:
Blocks: 30202
  Show dependency tree
 
Reported: 2007-07-04 00:54 UTC by icanseethepubfromhere
Modified: 2017-05-20 11:31 UTC (History)
4 users (show)

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


Attachments
fix calculation of "remaining bytes in a PFB file" (782 bytes, patch)
2013-02-07 16:37 UTC, hdu@apache.org
pfg: review+
pfg: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description icanseethepubfromhere 2007-07-04 00:54:43 UTC
Tested: aquavc|01_20070630

PPC G4 writer document

created a file using OpenType font, TrueType font and Postscript font.
exported to pdf and resulting file only contained TrueType font
OpenType and Postscript font were boxes, spaces, and apple icons in each line

(file sent to printer and fonts printed correctly)
Comment 1 hdu@apache.org 2007-07-04 09:31:47 UTC
- Truetype fonts are already supported
- OpenType fonts with truetype glyphs are already supported
- OpenType fonts with CFF glyphs will be supported (issue 43029)
- Type1 fonts have been obsoleted by OpenType fonts more than five years ago
- Bitmap fonts have been obsoleted by scalable font technologies and they'll probably never be support 
them for PDF export

So, what is remaining are Type1 fonts. Since they are not available on fresh OSX installations, I'm 
wondering if there really is much interest in having them supported? Please vote for this issue if your 
PDF export use cases would benefit from Type1 support.

In case some use cases for PDF export would benefit from support for bitmap fonts I suggest to open a 
new issue and collect votes there.
Comment 2 hdu@apache.org 2007-07-04 09:32:31 UTC
accepted
Comment 3 philipp.lohmann 2009-01-06 14:38:31 UTC
this is another "type1 subsetting needed" issue
Comment 4 oikoi 2009-08-21 07:24:14 UTC
Despite the presence of OpenType, there are still a hell of a lot of Type1 fonts
out there in daily use, a huge investment by a lot of people.  One doesn't throw
away a multi-thousand dollar investment just because Adobe declares OpenType to
have "obsoleted" Type1.  Can this please be fixed?  I used my two votes for this
issue.
Comment 5 Pedro Giffuni 2013-02-06 23:54:20 UTC
On a related note,

It looks like there is an off-by-one error when exporting postcript fonts to pdf

In file vcl/source/gdi/pdfwriter_impl.cxx line 3390

Substract a 1 from the right hand side.
Comment 6 Pedro Giffuni 2013-02-07 00:02:57 UTC
(In reply to comment #5)
> On a related note,
> 
> It looks like there is an off-by-one error when exporting postcript fonts to
> pdf
> 
> In file vcl/source/gdi/pdfwriter_impl.cxx 
> 

I should've been clearer, the problem is in
PDFWriterImpl::emitEmbeddedFont

When assigning the value of nLength3 (line 3390), nIndex should now point *before* the first of the 512 '0' characters marking the fixed content portion.

> Substract a 1 from the right hand side.
Comment 7 hdu@apache.org 2013-02-07 16:37:26 UTC
Created attachment 80228 [details]
fix calculation of "remaining bytes in a PFB file"

You are right, thanks for the idea! The block above the one you mentioned shows that nIndex already starts with one less; so if the number of remaining bytes is calculated this has to be taken into account.

Please review the patch.
Comment 8 Pedro Giffuni 2013-02-07 16:41:17 UTC
Comment on attachment 80228 [details]
fix calculation of "remaining bytes in a PFB file"

Looks good, indeed!
Comment 9 Marcus 2017-05-20 11:31:09 UTC
Reset assigne to the default "issues@openoffice.apache.org".