Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 1998 18:04:16 -0500 (CDT)
From:      Dave Bodenstab <imdave@mcs.net>
To:        kmarx@bigshed.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: truetype fonts w/ ghostscript problems?
Message-ID:  <199809302304.SAA09347@base486.home.org>

next in thread | raw e-mail | index | archive | help
From: Ken Marx <kmarx@bigshed.com>
>
> I'm seeing that some ttf fonts have problems when running with
> ghostscript5.10 on freeBSD 2.2.6. (I'm using xfstt099 as my trueType
> font server.)
>
> Many fonts work fine. Some botch badly.
>
> Here's an example of what I'm seeing with, say, times.ttf 
> (Times New Roman Regular:Version 2, Monotype Corporation plc/Type Solutions
> Inc. 1990-1992):
>
> ----------------------------
> % gs prfont.ps
> Aladdin Ghostscript 5.10 (1997-11-23)
> Copyright (C) 1997 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> Loading NimbusRomNo9L-Regu font from
> /usr/local/share/ghostscript/fonts/n021003l.pfb... 1945208 578017 1300092 13643
> 0 done.
> GS>/times DoFont
> Loading times font from /usr/local/share/ghostscript/fonts/times.ttf... Error:
> /rangecheck in --string--
> Operand stack:
>    F   times   Font   times   18687   times   --nostringval--   times  
> (/usr/local/share/ghostscript/fonts/times.ttf)   false   sfnts  
> --nostringval--  
> (\000\001\000\000\000\023\001\000\000\004\0000LTSH\200\037\347\352\000\000\001<\000\0
> ...... <huge octal dump followed by error and left two-deep on the stack>
> --------------------------
>
> I've tried sending mail to Dave Bodenstab (imdave@synet.net), who
> wrote a freebsd tutorial for font stuff 
> (www.pt.freebsd.org/tutorials/fonts/fonts.html). But the mail bounced.

I've not played with a font server, but I don't see what that has to do
with ghostscript -- I believe that ghostscript handles the font files itself
and uses them to draw the individual characters.  I tried your example on a 2.2.5
system:

  Script started on Wed Sep 30 17:33:21 1998
  $ strings /dos/windows/system/times.ttf | fgrep 1990
   The Monotype Corporation plc/Type Solutions Inc. 1990-1992. All Rights ReservedTimes New RomanRegularMonotype:Times New Roman Regular:Version 1 (Microsoft)Times New RomanMS core font:V1.00TimesNewRomanPSMTTimes New Roman
  $ cat Fontmap
  /testtimes	(/dos/windows/system/times.ttf) ;
  $ gs prfont.ps
  Aladdin Ghostscript 5.10 (1997-11-23)
  Copyright (C) 1997 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
  This software comes with NO WARRANTY: see the file PUBLIC for details.
  Loading Times-Roman font from /usr/local/share/ghostscript/fonts/tir_____.pfb... 1965300 593366 1300092 13815 0 done.
  GS>/testtimes DoFont
  Loading testtimes font from /dos/windows/system/times.ttf... 1965300 594709 1427436 134252 0 done.
  Using TimesNewRomanPSMT font for testtimes.
  >>showpage, press <return> to continue<<
  >>showpage, press <return> to continue<<
  >>showpage, press <return> to continue<<
  GS>^D
  $ exit
  Script done on Wed Sep 30 17:47:37 1998


It works for me... admittedly, the times.ttf that comes with windows 3.1
may be different than the times.ttf that you use.  Perhaps ghostscript
cannot handle that particular ttf file.  Have you tried the ttf font
previewer that comes with libfreetype (http://www.freetype.org)?

Dave Bodenstab
imdave@mcs.net


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809302304.SAA09347>