title: Font not being mapped correctly in ghostscript
body: <p>I am trying to convert a pdf document to a tiff using Ghostscript 9.10.
  The pdf has TrueType (CID) Arial and Calibri fonts embedded in it.</p>
  
  <p>The command line I am using is the following:</p>
  
  <pre><code>gswin32.exe -dSAFER -dBATCH -r200 -sDEVICE= tifflzw -sOutputFile=d:\temp\tmp.tiff D:\Temp\test.pdf
  </code></pre>
  
  <p>The conversion is successful but the Calibri portion comes out mangled</p>
  
  <p>I tried adding different combinations of the following to the cidfmap:</p>
  
  <pre><code>/Calibri &lt;&lt; /Path (c:/windows/Fonts/Calibri.ttf) /SubfontID 0 /FileType /TrueType /CSI [(Identity-H) 0] &gt;&gt; ;
  /Calibri &lt;&lt; /Path (c:/windows/Fonts/Calibri.ttf) /SubfontID 0 /FileType /TrueType /CSI [(Unicode) 0] &gt;&gt; ;
  /Calibri &lt;&lt; /Path (c:/windows/Fonts/Calibri.ttf) /SubfontID 0 /FileType /TrueType /CSI [(Identity) 0] &gt;&gt; ;
  </code></pre>
  
  <p>But when I run the command with the changes to the cidfmap I get the following</p>
  
  <pre><code>**** Warning: can't process font stream, loading font by the name.
  **** Error reading a content stream. The page may be incomplete.
  **** File did not complete the page properly and may be damaged.
  </code></pre>
  
  <p>The embedded arial font seems to be handled without an issue - and comes out correctly in the tiff.</p>
  
  <pre><code>Can't find CID font "Arial".
  Attempting to substitute CID font /Adobe-Identity for /Arial, see doc/Use.htm#CI
  DFontSubstitution.
  The substitute CID font "Adobe-Identity" is not provided either. attempting to u
  se fallback CIDFont.See doc/Use.htm#CIDFontSubstitution.
  Loading a TT font from %rom%Resource/CIDFSubst/DroidSansFallback.ttf to emulate
  a CID font Adobe-Identity ... Done.
  </code></pre>
  
  <p>Does anybody have any idea how to deal with embedded calibri fonts?</p>