|
From: | Auto mailings of changes to Lily Issues via Testlilyissues-auto |
Subject: | [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5947 Add `-dfont-ps-resdir` option to embed fonts to PDFs later |
Date: | Tue, 28 Apr 2020 13:15:25 -0000 |
Diff:
Passes make, make check and a full make doc.
[issues:#5947] Add -dfont-ps-resdir
option to embed fonts to PDFs later
Status: Started
Created: Tue Apr 28, 2020 12:42 PM UTC by Masamichi Hosoda
Last Updated: Tue Apr 28, 2020 12:42 PM UTC
Owner: Masamichi Hosoda
Add -dfont-ps-resdir
option to embed fonts to PDFs later
A similar purpose option, -dfont-export-dir
exports fonts
as individual PostScript files for font embedding later.
However it cannot embed CID fonts to PDFs with Ghostscript 9.26 and later.
This -dfont-ps-resdir
option creates
a subset of PostScript resource directory
in the directory specified by the option.
The directory contains symbolic links to font files
that Ghostscript can use to embed the fonts to PDFs later.
This method can embed CID fonts, even with Ghostscript 9.26 and later.
This -dfont-ps-resdir
option skips TrueType fonts
because garbled characters occur same as -dfont-export-dir
option.
Unlike -dfont-export-dir
option,
it skips OTC (OpenType Collection/CFF) font files
because Ghostscript cannot handle them directly.
Simple usage:
$ lilypond -dfont-ps-resdir=resdir -dgs-never-embed-fonts foo.ly $ gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite \ -I resdir -I resdir/Font \ -sOutputFile=foo.embedded.pdf foo.pdf
Note:
It is better not to specify the directory
that contains the name Resource
because it has a special meaning
when specified with the -I option for Ghostscript.
http://codereview.appspot.com/577900043
Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
_______________________________________________ Testlilyissues-auto mailing list address@hidden https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
[Prev in Thread] | Current Thread | [Next in Thread] |