Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2007 07:08:32 -0700 (PDT)
From:      "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
To:        Edwin Groothuis <edwin@mavetju.org>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/117253: graphics/xfig and xfig-devel no longer find ghostscript fonts.
Message-ID:  <200710181408.l9IE8WXV055910@troutmask.apl.washington.edu>
In-Reply-To: <20071018121212.GY3372@k7.mavetju>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



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