ports/117253: graphics/xfig and xfig-devel no longer find ghostscript fonts.

Steven G. Kargl kargl at troutmask.apl.washington.edu
Thu Oct 18 21:40:03 UTC 2007


The following reply was made to PR ports/117253; it has been noted by GNATS.

From: "Steven G. Kargl" <kargl at troutmask.apl.washington.edu>
To: Edwin Groothuis <edwin at mavetju.org>
Cc: freebsd-ports-bugs at 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 at 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/
 



More information about the freebsd-ports-bugs mailing list