Bug 117253 - graphics/xfig and xfig-devel no longer find ghostscript fonts.
Summary: graphics/xfig and xfig-devel no longer find ghostscript fonts.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-16 20:10 UTC by Steven G. Kargl
Modified: 2007-12-15 20:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven G. Kargl 2007-10-16 20:10:04 UTC
Install either xfig or xfig-devel.  Select a text object from the
left hand panel.  Go to bottom right to select a new postscript
font.  No matter which font is selected xfig and xfig-devel will
automatically select "Default".  Prior to the Xorg churn one 
could select any listed font and xfig and xfig-devel would display
and use that font.

How-To-Repeat: 
See above.
Comment 1 Steven G. Kargl 2007-10-17 05:04:19 UTC
I found the xfig-3.2.4 tar ball and built xfig outside
of the ports collection infrastructure.  It exhibits the
same problem with postscript fonts.  I suspect that either
Xaw3d-1.5E or Xorg 7.2 and xfig are not longer compatible.

-- 
Steve
http://troutmask.apl.washington.edu/~kargl/
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2007-10-17 14:40:57 UTC
State Changed
From-To: open->open

nothing happened here.
Comment 3 Steven G. Kargl 2007-10-18 15:08:32 UTC
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/
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2007-12-15 20:14:19 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-12-15 20:48:52 UTC
pav         2007-12-15 20:48:48 UTC

  FreeBSD ports repository

  Modified files:
    graphics/xfig        Makefile 
    graphics/xfig/files  patch-w_fontpanel.c 
    graphics/xfig-devel  Makefile 
  Added files:
    graphics/xfig/files  patch-u_fonts.c 
    graphics/xfig-devel/files patch-u_fonts.c patch-w_fontpanel.c 
  Log:
  - Fix xfig to be able to use Ghostscript fonts again
  - While here, update download location
  
  PR:             ports/117253
  Submitted by:   Steven G. Kargl <kargl@troutmask.apl.washington.edu>
  
  Revision  Changes    Path
  1.60      +1 -1      ports/graphics/xfig-devel/Makefile
  1.1       +11 -0     ports/graphics/xfig-devel/files/patch-u_fonts.c (new)
  1.1       +20 -0     ports/graphics/xfig-devel/files/patch-w_fontpanel.c (new)
  1.60      +2 -2      ports/graphics/xfig/Makefile
  1.1       +11 -0     ports/graphics/xfig/files/patch-u_fonts.c (new)
  1.2       +18 -0     ports/graphics/xfig/files/patch-w_fontpanel.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"