From j.e.drews@worldnet.att.net  Sat Jul 19 19:16:15 2003
Return-Path: <j.e.drews@worldnet.att.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E59F137B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Jul 2003 19:16:15 -0700 (PDT)
Received: from mtiwmhc13.worldnet.att.net (mtiwmhc13.worldnet.att.net [204.127.131.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 06F1243FBF
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Jul 2003 19:16:15 -0700 (PDT)
	(envelope-from j.e.drews@worldnet.att.net)
Received: from 92.st-louis-101-102rs.mo.dial-access.att.net ([12.85.104.92])
          by mtiwmhc13.worldnet.att.net (mtiwmhc13) with SMTP
          id <2003072002161311300f0lnbe>; Sun, 20 Jul 2003 02:16:13 +0000
Message-Id: <200307192121.32595.j.e.drews@worldnet.att.net>
Date: Sat, 19 Jul 2003 21:21:32 -0500
From: Jonathan <j.e.drews@worldnet.att.net>
Reply-To: j.e.drews@worldnet.att.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: change to gnu-gsfonts 6.0 breaks Ted Word Processor

>Number:         54647
>Category:       ports
>Synopsis:       Updated gsfonts 6.0 disables printing in Ted
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 19 19:20:13 PDT 2003
>Closed-Date:    Tue Dec 16 15:13:27 PST 2003
>Last-Modified:  Tue Dec 16 15:13:27 PST 2003
>Originator:     Jonathan
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD analytic.engine 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat Jul 19 
16:51:55 CDT 2003 root@analytic.engine:/usr/obj
/usr/src/sys/STABLE_48 i386

>Description:
  The recent update of /usr/ports/print/gsfonts from 5.10 to version 6.0 
breaks printing in the word processor Ted (editors/ted). Ted depends on the 
fonts Courier, Times, and Helvetica. These fonts are not present in either 
gnu-gs-fonts-other-6.0 or gnu-gs-fonts-std-6.0.tar. The changes are show 
here:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/print/gsfonts/Makefile.diff?r1=1.11&r2=1.12&f=h

>How-To-Repeat:
   
    Try to print a document with Ted that includes math symbols or certain 
superscripts and those words are run together on the hardcopy. Ted must have 
access to the  Courier, Times, and Helvetica fonts.      

>Fix:

     Is it possible to use both version 5.10 and 6.0 ghostscript fonts?

>Release-Note:
>Audit-Trail:

From: Jonathan <j.e.drews@worldnet.att.net>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/54647
Date: Mon, 21 Jul 2003 18:09:55 -0500

 >Submitter-Id:  current-users
 >Originator:    Jonathan Drews
 >Organization:  <organization of PR author (multiple lines)>
 >Confidential:  no <FreeBSD PRs are public data>
 >Synopsis:      <synopsis of the problem (one line)>
 >Severity:       serious
 >Priority:         low 
 >Category:      ports
 >Class:          sw-bug 
 >Release:       FreeBSD 4.8-STABLE i386
 >Environment:
 System: FreeBSD analytic.engine 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat Jul 19 
 16:51:55 CDT 2003 root@analytic.engine:/usr/obj
 /usr/src/sys/STABLE_48 i386
 
 >Description:
  Printing text that contains superscripts or math fonts, using Helvetica or 
 Times fonts, causes run together words in OpenOffice 1.0.3
 
 
 >How-To-Repeat:
         Type up a line in OpenOffice 1.0.3 like so:
 
 The decay is given by e-0.25*x using Times or Helvetica font, where the 
 -0.25*x is a superscript. 
 
 The e-0.25*x will be superimposed on the words "given by", on the hardcopy.
 
 

From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" <giffunip@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: j.e.drews@worldnet.att.net, maho@FreeBSD.org
Subject: Re: ports/54647: Updated gsfonts 6.0 disables printing in Ted
Date: Wed, 23 Jul 2003 03:13:48 +0100 (BST)

 Hi;
 
 I submitted both ports, and the idea was to set this port as a dependency to
 gnu-ghostscript so I'm rather confused. What files are missing??
 The PLISTs are basicly the same so either type1inst is not doing well it's job,
 or something needs to be fixed in Ted.
 
 cheers,
 
    Pedro.
 
 ________________________________________________________________________
 Want to chat instantly with your online friends?  Get the FREE Yahoo!
 Messenger http://uk.messenger.yahoo.com/

From: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>
To: giffunip@yahoo.com
Cc: freebsd-gnats-submit@FreeBSD.org, j.e.drews@worldnet.att.net,
	maho@FreeBSD.org
Subject: Re: ports/54647: Updated gsfonts 6.0 disables printing in Ted
Date: Wed, 23 Jul 2003 11:40:58 +0900 (JST)

 Hi, Pedro
 
 Yes, you are right. I was too thoughtless.
 Why I committed Pedro's pr was just pkg-plist was almost same,
 so basically no problems will happen...
 
 Though I'm comfirming this issue.
 
 

From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" <giffunip@yahoo.com>
To: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>
Cc: freebsd-gnats-submit@FreeBSD.org, j.e.drews@worldnet.att.net,
	maho@FreeBSD.org
Subject: Re: ports/54647: Updated gsfonts 6.0 disables printing in Ted
Date: Wed, 23 Jul 2003 04:51:59 +0100 (BST)

  --- Nakata Maho <chat95@mbox.kyoto-inet.or.jp> wrote: > Hi, Pedro
 > 
 > Yes, you are right. I was too thoughtless.
 > Why I committed Pedro's pr was just pkg-plist was almost same,
 > so basically no problems will happen...
 > 
 > Though I'm comfirming this issue.
 > 
 > 
 
 I think you could just remove fonts.dir and fonts.scale and have type1inst
 generate new ones.
 I am not sure how Ted handles fonts though, do they still use the .afm files?
 In FreeBSD we have a historical problem: few people use .afm files and the few
 files we carry are broken. Last time I looked at the issue it's better to
 identify the atm files and download them directly from Adobe (a tedious task).
 
 cheers,
 
    Pedro.
 
 ________________________________________________________________________
 Want to chat instantly with your online friends?  Get the FREE Yahoo!
 Messenger http://uk.messenger.yahoo.com/

From: Jonathan <j.e.drews@worldnet.att.net>
To: freebsd-gnats-submit@freebsd.org
Cc: "Pedro F. Giffuni" <giffunip@yahoo.com>, maho@FreeBSD.org
Subject: Re: ports/54647: Updated gsfonts 6.0 disables printing in Ted
Date: Wed, 23 Jul 2003 23:44:40 -0500

 On Wednesday 23 July 2003 08:47 am, you wrote:
 > Jonathan since you know the affected fonts, do you think you could pinpoint
 > the specific files that have problems? 
 
 
 I think I found the problem:
 
 I installed the fonts locally with type1inst and I got this error message:
 ________________________________________________________
 bash-2.05b$ type1inst
 type1inst Version 0.6.1 (11th February 1998)
 Copyright (C) 1996-1998 James Macnicol (james.macnicol@mailexcite.com)
 
 There are a total of 35 PostScript fonts in this directory
 [10]
 [20]
 [30]
 -------------------------------------------------------
 35 fonts found
 35 were standard PostScript fonts
 -------------------------------------------------------
 While reading the existing Fontmap file I saw 49 entries
 which mentioned a filename which now does not exist.  Most likely
 you removed or renamed the file.  I ignored these entries.
 -------------------------------------------------------
 There were 315 lines in Fontmap which I couldn't understand
 These were ignored.
 -------------------------------------------------------
 
 Part of those 49 entries that got dropped are the aliases for the fonts 
 Helvetica, Times and Courier. In the type1inst.log I see:
 
 Couldn't understand line :
   % Aliases
 
   <SNIP -- irrelevant lines removed>
 
 Couldn't understand line :
   /Times-Roman                  /NimbusRomNo9L-Regu     ;
 
 Couldn't understand line :
   /Times-Italic                 /NimbusRomNo9L-ReguItal ;
 
 Couldn't understand line :
   /Times-Bold                   /NimbusRomNo9L-Medi     ;
 
 Couldn't understand line :
   /Times-BoldItalic             /NimbusRomNo9L-MediItal ;
 
 <SNIP -- irrelevant lines removed>
 
  So I looked at the original Fontmap and see that it has not changed in years:
 bash-2.05b$ ll Fontmap
 -rw-r--r--  1 bsd  bsd  - 13604 Oct 30  1997 Fontmap
 
 So something is wrong with type1inst (which IIRC) is a PERL script or 
 something is wrong with the ghostscript-gnu port?
 
  This would never be noticed on the ports install because the port invokes 
 type1inst with no logging of errors and it prints out no errors, while it is 
 running.
 
 
 
 
 
 -- 
 		Kind regards,
 		Jonathan
 

From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" <giffunip@yahoo.com>
To: j.e.drews@worldnet.att.net, freebsd-gnats-submit@freebsd.org
Cc: maho@FreeBSD.org
Subject: Re: ports/54647: Updated gsfonts 6.0 disables printing in Ted
Date: Thu, 24 Jul 2003 06:00:43 +0100 (BST)

  --- Jonathan <j.e.drews@worldnet.att.net> wrote: > On Wednesday 23 July 2003
 08:47 am, you wrote:
 ...
 > 
 > So something is wrong with type1inst (which IIRC) is a PERL script or 
 > something is wrong with the ghostscript-gnu port?
 >
 Both ! The gnu-gsfonts-6.0 doesn't include a Fontmap file: for some obscure
 reason they decided to make it part of gnu-ghostcript instead. (gsfonts-5.1
 included the Fontmap file but not the X stuff). type1inst is an old utility and
 it's I'm not sure if it's maintained anymore.
 Perhaps you can try this?
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=184848
 
  
 >  This would never be noticed on the ports install because the port invokes 
 > type1inst with no logging of errors and it prints out no errors, while it is 
 > running.
 > 
 
 There is a reason for that: logs or error reports are only for the port
 maintainer, the end user wouldn't like to find them in their pkg-plist, just
 like you wouldn't like to find bento logs on in a pkg_add () tarball.
 
 cheers,
 
    Pedro.
 
 ________________________________________________________________________
 Want to chat instantly with your online friends?  Get the FREE Yahoo!
 Messenger http://uk.messenger.yahoo.com/

From: Jonathan <j.e.drews@worldnet.att.net>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>,
	"Pedro F. Giffuni" <giffunip@yahoo.com>
Subject: Re: ports/54647: Updated gsfonts 6.0 disables printing in Ted
Date: Thu, 24 Jul 2003 19:51:44 -0500

 On Thursday 24 July 2003 03:40 PM, you wrote:
 > Hi guys;
 >
 > The following patch to type1inst improves things here. The problem Jonathan
 > sees though, seems to stem by an incorrect (changed?) naming in the
 > ghostscript fonts. What ghostscript calles Courier is detected as Nimbus.
 >
 > I suggest we add the patch to type1inst and remove the -g flag in the font
 > ports. I'm unsure if we should do some postpatching to make the fonts
 > behave like in 5.1 or if the documents should be changed to use the fonts
 > with the changed names.
 
 Hi Pedro:
 
  I added the patch-type1inst you sent and Ted prints correctly now.
 I added the patch to /usr/local/bin/type1inst.
 2) I did make deinstall and make clean in /usr/ports/print/gsfont
 3) I did make install in that port to make and install it anew.
 4) I tested Ted for printing with helvetica and times fonts and it printed the 
 superscripts correctly. I rebooted the computer and tested it again and the 
 fonts print correctly for Helvetica and Times. In the last instance I tested 
 it for Courier also, and it printed correctly.
 
  So it seems that this patch works well with the 6.0 std fonts. I should also 
 mention that the script ignored 8 lines in the 6.0 std package. It ignored 26 
 fonts in the fonts-other-6.0 package. Here is output from running (the 
 patched) type1inst on fonts-other-6.0:
 
 bash-2.05b$ cd GNU-Fonts/fonts-other-6.0/
 bash-2.05b$ type1inst
 type1inst Version 0.6.1 (11th February 1998)
 Copyright (C) 1996-1998 James Macnicol (james.macnicol@mailexcite.com)
 
 There are a total of 49 PostScript fonts in this directory
 [10]
 [20]
 [30]
 [40]
 -------------------------------------------------------
 49 fonts found
 17 were standard PostScript fonts
 6 were Ghostscript fonts
 -------------------------------------------------------
 I couldn't extract font names for 26 fonts in
 this directory.  This means the font file had a non-standard
 format which this program doesn't know about or cannot do
 anything with.  Check the README file to find out more.
 -------------------------------------------------------
 
 A log of errors is located in the file "type1inst.log"
 
 
  It does not work with the 5.10 fonts though. Here is the message generated by 
 type1inst (the patched type1inst):
 
 bash-2.05b$ type1inst
 type1inst Version 0.6.1 (11th February 1998)
 Copyright (C) 1996-1998 James Macnicol (james.macnicol@mailexcite.com)
 
 There are a total of 35 PostScript fonts in this directory
 [10]
 [20]
 [30]
 -------------------------------------------------------
 35 fonts found
 35 were standard PostScript fonts
 -------------------------------------------------------
 While reading the existing Fontmap file I saw 49 entries
 which mentioned a filename which now does not exist.  Most likely
 you removed or renamed the file.  I ignored these entries.
 -------------------------------------------------------
 There were 315 lines in Fontmap which I couldn't understand
 These were ignored.
 -------------------------------------------------------
 
 A log of errors is located in the file "type1inst.log"
 
 
  It ignored 315 lines in the 5.10-std Fontmap file. So this script does not 
 appear to work on the older fonts. 
 
 
  So it does solve the printing problem with Ted but there are still fonts that 
 are not being installed. I will test OpenOffice later.
 
 
 -- 
 		Kind regards,
 		Jonathan
 

From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" <giffunip@yahoo.com>
To: j.e.drews@worldnet.att.net, FreeBSD-gnats-submit@FreeBSD.org
Cc: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>,
	"Pedro F. Giffuni" <giffunip@yahoo.com>
Subject: Re: ports/54647: Updated gsfonts 6.0 disables printing in Ted
Date: Fri, 25 Jul 2003 04:41:04 +0100 (BST)

  --- Jonathan <j.e.drews@worldnet.att.net> wrote: 
 
 ..<snip>
 > 
 > 
 >  It ignored 315 lines in the 5.10-std Fontmap file. So this script does not 
 > appear to work on the older fonts. 
 > 
 On the 5.10 port we didnt use type1inst for this but instead the default
 Fontmap file. The overall result is better with the patch in all cases.
 Maho, do you want me to send a PR for type1inst, or can you simply commit it?
 I'm interested in the benefits this will bring to other psfonts we carry :).
 
 > 
 >  So it does solve the printing problem with Ted but there are still fonts
 > that are not being installed. I will test OpenOffice later.
 > 
 Thanks for all the feedback Jonathan. It would be best if we don't have to
 maintain gsfonts-5.10 in the tree as they would be in conflict, but if we have
 to I guess we could handle this just like we handle the two versions of bison
 in the port tree.
 
 cheers,
 
    Pedro.
 
 ________________________________________________________________________
 Want to chat instantly with your online friends?  Get the FREE Yahoo!
 Messenger http://uk.messenger.yahoo.com/
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Tue Dec 16 15:12:49 PST 2003 
State-Changed-Why:  
If I read audit trail correctly, this was fixed by adding 
files/patch-type1inst to x11-fonts/type1inst port on July 27 
by maho. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54647 
>Unformatted:
 SEND-PR:
 To: FreeBSD-gnats-submit@freebsd.org
 From: Jonathan Drews
 Reply-To: j.e.drews@att.net
 Cc:
 X-send-pr-version: 3.113
 X-GNATS-Notify:
 
 
