How to embed fonts in pdf file of a LaTeX document
-
Locate the configuration file updmap.cfg, you can find it for example in the directory C:\MiKTeX 2.7\miktex\config, and edit it in order to change to true the option pdftexDownloadBase14, as shown below
#
# pdftexDownloadBase14
#
# Should pdftex download the base 14 pdf fonts? Since some configurations
# (ps / pdf tools / printers) use bad default fonts, it is safer to download
# the fonts. The pdf files will get bigger, though.
# Valid settings are true (download the fonts) or false (don't download
# the fonts).
#pdftexDownloadBase14 falsepdftexDownloadBase14 true
-
As a next step, locate also the pdftex.cfg file and edit it, usually located at C:\MiKTeX 2.7\pdftex\config. Then add or modify the following lines in order to embed all fonts
map pdftex_dl14.map
map pdftex.map - Then locate the file updmap.exe and run it as as administrator. In a typical miktex installation you will find the file in the directory C:\ MiKTeX 2.7\miktex\bin.
How to embed Helvetica fonts in figures
-
As you can see from the file Fontmap.GS located in C:\gs\gs8.14\lib, normally aliases are used in gsview for the visualization of helvetica fonts.
/Helvetica /NimbusSanL-Regu ;
/Helvetica-Oblique /NimbusSanL-ReguItal ;
/Helvetica-Bold /NimbusSanL-Bold ;
/Helvetica-BoldOblique /NimbusSanL-BoldItal ;However, this may create problems in the conversion to pdf, since the aliases are not recognized by the adobe pdf settings. Therefore,
Remove the above alias definition in the Fontmap.GS file and replace them by a definition of new fonts:
/Helvetica (n019003l.pfb) ;
/Helvetica-Oblique (n019023l.pfb) ;
/Helvetica-Bold (n019004l.pfb) ;
/Helvetica-BoldOblique (n019024l.pfb) ; - More details can be found on Daniel Lemire's blog.