Menu

#2191 Metapost has fontmap problems with lxfonts

attic
metapost (5)
2016-04-20
2012-11-19
Ian Leroux
No

Attempting to produce labels using the lxfonts slide fonts generates errors in metapost. Here is a test file:

prologues := 3;

verbatimtex \documentclass{article} \usepackage{lxfonts} \begin{document} etex;

beginfig(1)
  label(btex foo etex, origin);
endfig;

verbatimtex \end{document} etex;
end;

Running the command

mpost -tex=latex figures.mp

(where figures.mp is the test file above) produces the following error message:

This is MetaPost, version 1.504 (MiKTeX 2.9)
(mpost.mp (C:/Program Files/MiKTeX 2.9/metapost/base/plain.mp
Preloading the plain mem file, version 1.004)) (g:/PRIVATE_FOLDERS/IDL/font test/figures.mp [1{pdfte
x.map}
! fontmap encoding problems for font llcmss8.
endfig->scantokens.extra_endfig;shipit;
                                       endgroup
l.7 endfig
          ;
? 
! Emergency stop.
endfig->scantokens.extra_endfig;shipit;
                                       endgroup
l.7 endfig
          ;
Transcript written on figures.log.

The same error is produced if prologues:=2. If prologues:=0, the file compiles without errors, presumably since metapost doesn't attempt to map fonts in that case. The file also compiles without errors if I replace "\usepackage{lxfonts}" with any of "\usepackage{lmodern}", "\usepackage{cmbright}", "\usepackage{fourier}", or "\usepackage{mathpple}", so the problem seems to be specific to lxfonts. I've reproduced the error on three different machines, all running MikTeX 2.9 under Windows 7, though I haven't reproduced all the successful compilations listed above on all three machines.

I've also seen "fontmap name problems" instead of "fontmap encoding problems", but I haven't yet got a simple test case that produces those.

I'm not sure if this is a configuration problem, an lxfonts problem, or a metapost problem. Any assistance would be appreciated.

-- IDL

Discussion

  • Christian Schenk

    Please attach a minimal example test case.

     
  • Christian Schenk

    • status: open --> pending
     
  • Ian Leroux

    Ian Leroux - 2012-11-25

    Minimal example attached. When compiling this file with

    mpost -tex=latex figures.mp
    

    I obtain the following error message:

    This is MetaPost, version 1.504 (MiKTeX 2.9)
    (mpost.mp (C:/Program Files/MiKTeX 2.9/metapost/base/plain.mp
    Preloading the plain mem file, version 1.004)) (g:/PRIVATE_FOLDERS/IDL/font test/figures.mp [1{pdfte
    x.map}
    ! fontmap encoding problems for font llcmss8.
    endfig->scantokens.extra_endfig;shipit;
                                           endgroup
    l.5 endfig
              ;
    ? 
    ! Emergency stop.
    

    -- IDL

     
  • Christian Schenk

    • labels: --> metapost
    • status: pending --> open
    • assigned_to: Christian Schenk
     
  • Christian Schenk

    • labels: metapost --> metapost, mpost
     
  • Christian Schenk

    • labels: metapost, mpost --> metapost
     
  • Christian Schenk

    • Status: open --> attic