From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Oct 18 21:40:03 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ED2616A420 for ; Thu, 18 Oct 2007 21:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 64EE413C4B3 for ; Thu, 18 Oct 2007 21:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9ILe2E8095939 for ; Thu, 18 Oct 2007 21:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9ILe2Zs095938; Thu, 18 Oct 2007 21:40:02 GMT (envelope-from gnats) Date: Thu, 18 Oct 2007 21:40:02 GMT Message-Id: <200710182140.l9ILe2Zs095938@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: "Steven G. Kargl" Cc: Subject: Re: ports/117253: graphics/xfig and xfig-devel no longer find ghostscript fonts. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Steven G. Kargl" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2007 21:40:03 -0000 The following reply was made to PR ports/117253; it has been noted by GNATS. From: "Steven G. Kargl" To: Edwin Groothuis Cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/117253: graphics/xfig and xfig-devel no longer find ghostscript fonts. Date: Thu, 18 Oct 2007 07:08:32 -0700 (PDT) Edwin Groothuis wrote: > On Wed, Oct 17, 2007 at 04:25:46PM -0700, Steven G. Kargl wrote: > > edwin@FreeBSD.org wrote: > > > Old Synopsis: xfig and xfig-devel no longer find ghostscript fonts. > > > New Synopsis: graphics/xfig and xfig-devel no longer find ghostscript fonts. > > > > Grrr. By changing the subject/synopsis, you've redirected my > > email with patches attached to the bit bucket. > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-submitting.html > Yeah, ah, thanks. Now, as I said, I can no longer send emails to be archived with the PR. So, here's the missing patches. Do with them what you want. --- u_fonts.c.old 2007-10-17 12:22:24.000000000 -0700 +++ u_fonts.c 2007-10-17 12:23:36.000000000 -0700 @@ -107,7 +107,7 @@ /* PostScript font names matched with X11 font names in x_fontinfo */ struct _fstruct ps_fontinfo[NUM_FONTS + 1] = { - {"Default", -1}, + {"Default", 0}, {"Times-Roman", 0}, {"Times-Italic", 1}, {"Times-Bold", 2}, --- w_fontpanel.c.old 2007-10-17 12:49:39.000000000 -0700 +++ w_fontpanel.c 2007-10-17 12:50:09.000000000 -0700 @@ -143,7 +143,7 @@ ps_fontmenu_items[i].type = MENU_IMAGESTRING; /* put the fontnames in * menu */ ps_fontmenu_items[i].label = ps_fontinfo[i].name; - ps_fontmenu_items[i].info = (caddr_t) (i - 1); /* index for font # */ + ps_fontmenu_items[i].info = (caddr_t) i; /* index for font # */ } for (i = 0; i < NUM_LATEX_FONTS; i++) { @@ -359,7 +359,7 @@ char *font_name = mi->label; if (*flag_sel) - *font_ps_sel = (int) mi->info; /* set ps font to one selected */ + *font_ps_sel = (int) mi->info - 1; /* set ps font to one selected */ else *font_latex_sel = (int) mi->info; /* set latex font to one * selected */ -- Steve http://troutmask.apl.washington.edu/~kargl/