How to use and not embed the PdfBase14 fonts?
![](https://secure.gravatar.com/avatar/1cb1e39b11e9afb719ebb806abfba553.jpg?s=120&d=mm&r=g)
Hi all! I want to generate PDF documents that use the standard PDF fonts (Helvetica, Times-Roman, and Courier) and not to embed these fonts. With my former installation (TexLive-2003 and a ConText distribution of last autumn) this was possible by using the following lines in the praeambel: \usetypescript[adobekb][texnansi] \usetypescript[postscript][texnansi] \setupbodyfont[postscript,ss,13pt] (In addition, I had to configure pdfTeX by "updmap --setoption pdftexDownloadBase14 false"). After I upgraded to TexLive-2004 this does no longer work! I found that the typescript "adobekb" was replaced by "type-akb". Yet, the encoding "texnansi" seems no longer to be available (Metafont complains that it can not find: texnansi-utmr8a). Changing the encoding to "ec" that still is available yields: \usetypescript[type-akb][ec] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,13pt] Yet, using these lines in the praeambel results in a document that uses the NimbusSanL-Regu font, that clearly has to be embedded. Does anyone know how the standard PDF fonts can be used while not being embedded? Thanks for your attention, Stefan
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Stefan Wachter wrote:
I want to generate PDF documents that use the standard PDF fonts (Helvetica, Times-Roman, and Courier) and not to embed these fonts. With my former installation (TexLive-2003 and a ConText distribution of last autumn) this was possible by using the following lines in the praeambel:
\usetypescript[adobekb][texnansi] \usetypescript[postscript][texnansi] \setupbodyfont[postscript,ss,13pt]
(In addition, I had to configure pdfTeX by "updmap --setoption pdftexDownloadBase14 false").
After I upgraded to TexLive-2004 this does no longer work!
I found that the typescript "adobekb" was replaced by "type-akb". Yet, the encoding "texnansi" seems no longer to be available (Metafont complains that it can not find: texnansi-utmr8a). Changing the encoding to "ec" that still is available yields:
texnansi tfm files are not distributed (actually, what gets distributed is some mix of encodings) so you need to generate them using texfont
\usetypescript[type-akb][ec] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,13pt]
Yet, using these lines in the praeambel results in a document that uses the NimbusSanL-Regu font, that clearly has to be embedded.
you can make a private map file, say myfonts.map, and load that one with \loadmapfile[myfonts.map] lines with as first char an '=' will replace other map entries, so that way you can overrule defaults
Does anyone know how the standard PDF fonts can be used while not being embedded?
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/1cb1e39b11e9afb719ebb806abfba553.jpg?s=120&d=mm&r=g)
Hi Hans and Hartmut,
thanks for the information. I looked at the type-akb.tex file and found
that the fonts phvb8t, phvbo8t, phvr8t, and phvro8t are used.
I wrote the following small map file (named embed.map):
= phvb8t Helvetica-Bold "TeXBase1Encoding ReEncodeFont"
![](https://secure.gravatar.com/avatar/1cb1e39b11e9afb719ebb806abfba553.jpg?s=120&d=mm&r=g)
Hi Hans,
after a lot of experiments I could generate a PDF document where the
built-in Helvetica font is used. Yet, there are some open questions:
1. The \loadmapfile makro seems not to work. I tried lots of variants.
Only direct use of the pdfTex makro \pdfmapfile was successful.
2. In the praeambel I specify the enconding to be "ec". Yet, in the map
file I had to define a mapping for an 8r encoded font!
3. Texexec shows some warnings during the run. Maybe they are related to
the second question. The warnings are:
Warning: pdfetex (file ec-urw-courier.map): cannot open font map file
Warning: pdfetex (file ec-urw-helvetica.map): cannot open font map file
Warning: pdfetex (file ec-urw-times.map): cannot open font map file
Can you please have a short look on these questions?
Best regards,
--Stefan
Here is my test document:
\enableregime[il1]
\setupoutput[pdftex]
\usetypescript[adobekb][ec]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,sans,12pt]
\mainlanguage[de]
\setupheadertexts[]
\pdfoptionpdfminorversion 4
\starttext
\pdfmapfile{=embed.map}%
This is a test.
\stoptext
And here is the map file embed.map:
%phvb8t Helvetica-Bold "TeXBase1Encoding ReEncodeFont"
participants (4)
-
Hans Hagen
-
Hartmut Henkel
-
Stefan Wachter
-
Stefan Wachter