Pretest: dvi LaTeX, fontenc, type3 fonts

Brian Dunn bd at bdtechconcepts.com
Tue Mar 26 05:08:57 CET 2019


> Do you have cm-super installed?  

I was testing a minimal install.  It's fine with cm-super installed.

The following will be added to the next version of the lwarp package to
handle the situation.  If using DVI or PDF latex, the font is cmr, and
cm-super is not loaded, it tries to load lmodern, else it errors and tells
the user how to fix the problem.

---
\ifxetexorluatex
\else
  \ifdefstring{\f at family}{cmr}{
    \IfFileExists{type1ec.sty}% found only in cm-super
    {}
    {% cm-super not installed
      \IfFileExists{lmodern.sty}{
        \PackageInfo{lwarp}{cm-super not installed, loading lmodern}
        \RequirePackage{lmodern}
      }{
        \PackageError{lwarp}
        {%
          Lwarp requires a vector font.\MessageBreak
          Install and load cm-super, lmodern, or another\MessageBreak
          Type-1 vector font before loading lwarp%
        }
        {%
          Install cm-super or lmodern, and use\MessageBreak
            \space\space\protect\usepackage{cm-super} -or-
            \protect\usepackage{lmodern}\MessageBreak
          before\MessageBreak
            \space\space\protect\usepackage{lwarp}.%
        }
      }
    }% cm-super not installed
  }{}% f at family
\fi

---

> Why you're getting the bad bounding boxes in the fontenc case, I can't
> say without seeing what actually went awry.  

They may be a bug in xpdf.  My version is a few years old.


Brian


-- 
Brian Dunn
BD Tech Concepts LLC
http://www.BDTechConcepts.com


More information about the tex-live mailing list