title: PDFBox 2.0.1 how to use standard pdf fonts on Amazon Linux
body: <p>We migrated to PDFBox 2.0.1 from 1.8 and have some issues with fonts.  We try <strong>not</strong> to embed them and trying to use default fonts if possible.</p>
  
  <p>That worked well in 1.8 but in 2.0.1 we get some errors when running on Amazon Linux - e.g.</p>
  
  <ul>
  <li>PDType1Font.: Using fallback font LiberationSans for base font Times-Roman</li>
  <li>U+00B7 ('middot') is not available in this font's encoding: WinAnsiEncoding</li>
  </ul>
  
  <p>As everything is working OK on my Mac, the problem cause is that whatever fonts are not available on Amazon Linux, our target environment where the PDFs are to be created.</p>
  
  <p>a) It seems to me that the solution is hopefully just to install some Linux package with the fonts ... which one?
  Candidates are (<a href="https://aws.amazon.com/amazon-linux-ami/2016.03-packages/" rel="nofollow">https://aws.amazon.com/amazon-linux-ami/2016.03-packages/</a>)</p>
  
  <ul>
  <li>xorg-x11-fonts-7.2</li>
  <li>fontpackages-1.41</li>
  <li>liberation-fonts-1.05.1.20090721</li>
  <li>libXfont-1.4.5</li>
  </ul>
  
  <p>and if installed, do I have to map them .. and how?</p>
  
  <p>b) If there is no package, where would I find instructions on how to install the right fonts and how to map them (and where to get them from legally)</p>