title: CIDFMAP on Ghostscript 8.64 (substitute CID font "Adobe-Identity" is not provided)
body: <p>I'm trying to print PDFs using gsprint (Ghostscript 8.64) on Windows. It was working well until I encountered a PDF with a CID font that wasn't embedded. I get errors complaining about the Arial CID font used in the PDF.</p>
  <blockquote>
  <p>Can't find CID font &quot;Arial&quot;. Substituting CID font resource
  /Adobe-Identity for /Arial.</p>
  </blockquote>
  <p>If I upgrade to 9.07, it works fine -- probably because it generates the CIDFMAP file at the end of the installation. But I don't want to upgrade to 9.07. I've tried generating the CIDFMAP file via the following command, but the CIDFMAP file that gets generated is always empty (other than the header).</p>
  <blockquote>
  <p>bin\gswin32c -q -dBATCH -sFONTDIR=c:/windows/fonts -sCIDFMAP=lib/cidfmap lib/mkcidfm.ps</p>
  </blockquote>
  <p>I tried copying the CIDFMAP file from 9.07 to 8.64 lib folder, but that didn't work. Maybe I need to add some property somewhere specifying the location of the CIDFMAP file? How can I get gsprint (or gsview) to do the substitution of the Arial CID font?</p>
  <p>Update
  Adding the following line resolved the issue</p>
  <blockquote>
  <p>/Arial &lt;&lt; /FileType /TrueType /Path (c:/windows/fonts/arial.ttf) /SubfontID 0 /CSI [(Identity) 0] &gt;&gt; ;</p>
  </blockquote>
  <p>Now I'm getting the following error about Arial Bold</p>
  <blockquote>
  <p>Error: /invalidfileaccess in --.libfile-- Operand stack:<br />
  --dict:11/20(L)--   C2_0   1   --dict:6/6(L)--   --dict:6/6(L)--   Arial,Bold   --dict:11/12(ro)(G)--   --nostringval--   CIDFontObject<br />
  --dict:8/8(L)--   --dict:8/8(L)--   Arial,Bold   CIDFont   true   Arial,Bold   false   Arial,Bold   --dict:15/16(G)--<br />
  (C:/WINDOWS/Fonts/ARIALBD.TTF)</p>
  </blockquote>
  <p>I've tried adding various lines, but it doesn't help.</p>
  <blockquote>
  <p>/Arial,Bold &lt;&lt; /FileType /TrueType /Path (c:/windows/fonts/ARIALBD.TTF) /SubfontID 0 /CSI [(Identity) 0] &gt;&gt; ;</p>
  <p>/Arial-Bold &lt;&lt; /FileType /TrueType /Path (c:/windows/fonts/ARIALBD.TTF) /SubfontID 0 /CSI [(Identity) 0] &gt;&gt; ;</p>
  <p>/Arial-BoldMT &lt;&lt; /FileType /TrueType /Path (C:/WINDOWS/Fonts/ARIALBD.TTF)  /SubfontID 0  /CSI [(Unicode) 0] &gt;&gt; ;</p>
  <p>/Arial,BoldMT &lt;&lt; /FileType /TrueType /Path  (C:/WINDOWS/Fonts/ARIALBD.TTF)  /SubfontID 0  /CSI [(Unicode) 0] &gt;&gt; ;</p>
  <p>/Arial-Bold &lt;&lt; /FileType /TrueType /Path (C:/WINDOWS/Fonts/ARIALBD.TTF)  /SubfontID 0  /CSI [(Unicode) 0] &gt;&gt; ;</p>
  <p>/Arial,Bold &lt;&lt; /FileType /TrueType /Path (C:/WINDOWS/Fonts/ARIALBD.TTF)  /SubfontID 0  /CSI [(Unicode) 0] &gt;&gt; ;</p>
  </blockquote>
  <p>I'm hoping that eventually I'll understand this enough that I'll be able to handle the next two font errors that I suspect are to follow.</p>
  <p>Thanks</p>