[tex-live] arial.pfb and times.pfb in arabi.map cause dvips failures

T S texlist at gmail.com
Sat Jan 30 02:33:59 CET 2010


On Fri, Jan 29, 2010 at 5:54 PM, Reinhard Kotucha
<reinhard.kotucha at web.de> wrote:
> On 29 January 2010 T S wrote:
>
>  > ArialMT and TimesNewRomanPSMT are fonts which are frequently used in
>  > eps figures produced with MS software. When including such figures in
>  > a latex document, dvips looks for the corresponding pfb files and
>  > fails. E.g. this simple test file
>
> First of all, avoid MS software.  Microsoft doesn't know what .eps is,
> maybe even deliberately.  The BoundingBox is almost(?) always wrong
> and you have determine the correct values yourself.

agreed, but I am not the author of these papers and am not in a
position to dictate what software is used to generate them

>  Regarding the
> fonts, programs should include them if they are not ubiquitous.

they are in fact included, properly subsetted, even

>
> What you could try is to copy the content of the directory
>
>   texmf-dist/fonts/type1/public/tex-gyre
>
> to
>
>   c:\windows\fonts
>
> and use TeXGyreHeros-Regular instead of ArialMT and
> TeXGyreTermes-Regular instead of TimesNewRomanPSMT in your graphics.
>
> The TeXGyre fonts should be found by dvips.

we are using a standard texlive-2009 setup (on linux) to process third
party contributed material (several thousand/month). While I can think
of many workarounds, I believe it is simply wrong of arabi.map to
reference a non-free font by default. This should be optional. In our
case we simpy disabled arabi.map, which is trivial to do (updmap-sys
--disable arabi.map), however my intention was to point out the
underlying problem.

I could have also altered arabi.map and simply removed the 4 lines
referring to times.pfb and arial.pfb

>
> Maybe it's even better to copy the content of
> texmf-dist/fonts/opentype/public/tex-gyre to c:\windows\fonts but I
> don't have Windows and can't test anything.
>
> Another thing you could try is to install ghostscript and add aliases
> like this to lib/Fontmap:
>
> /ArialMT                        /NimbusSanL-Regu ;
> /TimesNewRomanPSMT              /NimbusRomNo9L-Regu ;

gs has no issues with these figures. They do not require system fonts,
because they are self-contained with all the necessary fonts embedded.
It is dvips in combination with arabi.map which is problematic.

with arabi.map dvips fails

$ dvips -u +arabi.map test.dvi
This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com)
' TeX output 2010.01.29:1816' -> t.ps
dvips: ! Couldn't find header file arial.pfb.
Note that an absolute path or a relative path with .. are denied in -R2 mode.
$ echo $?
1

without arabi.map dvips issues harmless (but unnecessary) warnings and succeeds

$ dvips t.dvi
This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com)
' TeX output 2010.01.29:1816' -> t.ps
dvips: Font ArialMT used in file optcond2.eps is not in the mapping file.
dvips: Font MyriadPro-Regular used in file optcond2.eps is not in the
mapping file.
dvips: Font TimesNewRomanPSMT used in file optcond2.eps is not in the
mapping file.
dvips: Font AdobeSongStd-Light-GBpc-EUC-H used in file optcond2.eps is
not in the mapping file.
</opt/texlive/2009/texmf/dvips/base/texc.pro>
</opt/texlive/2009/texmf/dvips/base/texps.pro>
</opt/texlive/2009/texmf/dvips/base/special.pro>.
</opt/texlive/2009/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>[1]
[2<./optcond2.eps>]
$ echo $?
0

>
> Then programs like ps2pdf or eps2eps can insert the URW versions at
> least.
>
> Regards,
>  Reinhard
>
> --
> ----------------------------------------------------------------------------
> Reinhard Kotucha                                      Phone: +49-511-3373112
> Marschnerstr. 25
> D-30167 Hannover                              mailto:reinhard.kotucha at web.de
> ----------------------------------------------------------------------------
> Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
> ----------------------------------------------------------------------------
>

Cheers
T.



More information about the tex-live mailing list