Note that there are some explanatory texts on larger screens.

plurals
  1. POghostscript fonts
    primarykey
    data
    text
    <p>I'm trying to get ghostscript to render a pdf file from a Windows box. The pdf file uses the ComicSansMS font. I've copied the comic.ttf file from my Windows7 box into my /usr/share/ghostscript/fonts directory, and I've created a Fontmap file in that same directory containing this line:</p> <pre><code>/ComicSansMS (comic.ttf) ; </code></pre> <p>As nearly as I can tell, the font is not being found despite this. The text comes out very poorly, and some of the smaller font sizes are rendered half the size they should be. Access times and strace show that the Fontmap file is being read, but the font file (comic.ttf) is not being accessed at all. There are no error messages:</p> <pre><code>hope 78$ gs cards-01.pdf GPL Ghostscript 9.00 (2010-09-14) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 1. Page 1 &gt;&gt;showpage, press &lt;return&gt; to continue&lt;&lt; </code></pre> <p>If I use -dFAPIDEBUG on the gs command line, I see the following:</p> <pre><code>hope 74$ gs -dFAPIDEBUG -I/usr/share/ghostscript/fonts cards-01.pdf GPL Ghostscript 9.00 (2010-09-14) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 1. Page 1 FAPIhook --nostringval-- Trying to render the font Font --nostringval-- ( aliased from ComicSansMS ) with FAPI... Font --nostringval-- ( aliased from ComicSansMS ) is being rendered with FAPI=FreeType FAPIhook --nostringval-- Font --nostringval-- ( aliased from ComicSansMS ) is mapped to FAPI=FreeType FAPIhook RVJCAL+SymbolMT Trying to render the font Font RVJCAL+SymbolMT with FAPI... Font RVJCAL+SymbolMT is being rendered with FAPI=FreeType FAPIhook RVJCAL+SymbolMT Font RVJCAL+SymbolMT is mapped to FAPI=FreeType FAPIhook HYLUQF+ComicSansMS Trying to render the font Font HYLUQF+ComicSansMS with FAPI... Font HYLUQF+ComicSansMS is being rendered with FAPI=FreeType FAPIhook HYLUQF+ComicSansMS Font HYLUQF+ComicSansMS is mapped to FAPI=FreeType &gt;&gt;showpage, press &lt;return&gt; to continue&lt;&lt; </code></pre> <p>Naturally, the line from the above that most concerns me is this one:</p> <pre><code>Font --nostringval-- ( aliased from ComicSansMS ) is being rendered with FAPI=FreeType </code></pre> <p>"gs -h" shows that the font directory is, indeed, in the search path:</p> <pre><code>hope 77$ gs -h GPL Ghostscript 9.00 (2010-09-14) [ ... ] Search path: /usr/share/ghostscript/9.00/Resource/Init : /usr/share/ghostscript/9.00/lib : /usr/share/ghostscript/9.00/Resource/Font : /usr/share/ghostscript/fonts : /usr/share/fonts/Type1 : /usr/share/fonts </code></pre> <p>I've tried several permutations of formatting in the Fontmap file, including:</p> <pre><code>(Comic Sans MS) (comic.ttf) ; (ComicSansMS) (comic.ttf) ; /Comic Sans MS (comic.ttf) ; /ComicSansMS /comic.ttf ; </code></pre> <p>I'm fairly sure my original one is the correct one, but I was getting desperate. :-P</p> <p>Any help would be greatly appreciated. Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload