Re: Ghostscript 9.26 cannot embed CID fonts

2019-03-19 Thread Knut Petersen

On 02.01.19 14:27, Knut Petersen wrote:

On 15.12.18 15:42, Masamichi Hosoda wrote:

I've noticed that gs-9.26 cannot embed CID fonts
for the extractpdfmark method.

In the method, we defined fonts in PostScript, and use it in PDF.
gs-9.26 cannot define the fonts for PDF in PostScript.
https://bugs.ghostscript.com/show_bug.cgi?id=700367#c4


The big problem is that the possible workaround ( use of 'gs -I ...' ) is 
broken too.


Since a bit more than an hourĀ  ghostscript 9.28 has been fixed (commits 
e005c87e09f6 and eec855c9baea in ghostpdl master).

Two workarounds are possible:

1: put the cid fonts in a CIDFont directory and use the -I command line argument

2: define CID fonts in a postscript file and feed that to ghostscript. As an 
example I give the necessary code for defining a non-standard cid version of 
Emmentalter-Brace:

   /lilypond-datadir where { pop } { userdict /lilypond-datadir 
(/home/knut/sources/lilybuilt/share/lilypond/2.21.0) put } ifelse

   lilypond-datadir (/fonts/otf/emmentaler-brace.cid) concatstrings (r) file 
.loadfont
   /Emmentaler-Brace /CIDFont findresource
   << exch {} forall /Path lilypond-datadir (/fonts/otf/emmentaler-brace.cid) 
concatstrings >>
   /Emmentaler-Brace exch /CIDFont defineresource pop
   /Emmentaler-BraceĀ  /Identity-H [ /Emmentaler-Brace ] composefontĀ  pop

For details see the discussion in 
https://bugs.ghostscript.com/show_bug.cgi?id=700436

Knut

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Ghostscript 9.26 cannot embed CID fonts

2019-01-02 Thread Knut Petersen

On 15.12.18 15:42, Masamichi Hosoda wrote:

I've noticed that gs-9.26 cannot embed CID fonts
for the extractpdfmark method.

In the method, we defined fonts in PostScript, and use it in PDF.
gs-9.26 cannot define the fonts for PDF in PostScript.
https://bugs.ghostscript.com/show_bug.cgi?id=700367#c4


The big problem is that the possible workaround ( use of 'gs -I ...' ) is 
broken too.

Fortunately we did not yet switch to emmentaler cid fonts, but any document 
that uses cid (= e.g. asian) fonts will render incorrectly if the Tex-GS method 
with gs as postprocessor is used.

Have a look at https://bugs.ghostscript.com/show_bug.cgi?id=700436

Knut

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Ghostscript 9.26 cannot embed CID fonts

2018-12-15 Thread Masamichi Hosoda
I've noticed that gs-9.26 cannot embed CID fonts
for the extractpdfmark method.

In the method, we defined fonts in PostScript, and use it in PDF.
gs-9.26 cannot define the fonts for PDF in PostScript.
https://bugs.ghostscript.com/show_bug.cgi?id=700367#c4

To define fonts for ghostscript,
root privileges seems to be required on most systems.
https://bugs.ghostscript.com/show_bug.cgi?id=700367#c6

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel