ps2write rasterizes Type1C font

38 Views Asked by At

While using Ghostscript's ps2write device with documents containing TrueType or Type1 fonts works fine, it appears that given a document with a Type1C font it produces a Type3 bitmap font.

I am wondering if this expected behaviour and what the reason is.

Here the steps to reproduce:

Create a minimal document.

\documentclass{article}
\begin{document}
Test
\end{document}

Compiling to PDF results in a Type1 font.

pdflatex document.tex

Type 1 font

Converting to Postscript and back to PDF results in a Type1C font.

gs -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=document.ps -f document.pdf
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -o restore1.pdf document.ps

Type 1C font

Repeating results in a Type3 bitmap font.

gs -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=restore1.ps -f restore1.pdf
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -o restore2.pdf restore1.ps

Type 3 bitmap font

Fonts used in the PDF documents.

$ pdffonts original.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
EVFUHE+NimbusRomNo9L-Regu            Type 1            Custom           yes yes yes      4  0
$ pdffonts restore1.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
QHWNWY+CMR10                         Type 1C           WinAnsi          yes yes no       7  0
$ pdffonts restore2.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
[none]                               Type 3            Custom           yes no  yes     11  0

Software versions used.

$ gs --version
10.01.2

$ pdflatex --version | head -1
pdfTeX 3.141592653-2.6-1.40.24 (TeX Live 2022)
0

There are 0 best solutions below