Xfig and fonts

IRIX and IRIX software discussion including open source and commerical offerings.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
necron2600
Posts: 279
Joined: Tue May 26, 2015 10:38 pm
Location: Boston

Xfig and fonts

Unread postby necron2600 » Thu Feb 25, 2016 2:01 pm

Anyone else have nekoware's Xfig (3.2.5-alpha5) working 'with' fonts?

It just says it "Can't find Times-Roman-13, using fixed" Or "Can't find xyzfontname-##, using 6x13" 'fixed' or '6x13' come from the Fig app-defaults file.. as a default font that is used. 6x13 does work, I am able to get smaller sized fonts versus the large 'fixed' one if I had that hardset in the Fig app-defaults file.

I ran strace on xfig.. nothing helpful.
xset -q shows a bunch of FONTPATH locations that exist
I can run:
xfontsel and I believe I can show lots of fonts and settings. Temes and Helvetica, etc..
I can run
xlsfonts |grep times and find lots of fonts.. adobe and urw- versions of times.. as well as the last few:
[octane]:~ $ xlsfonts | grep times |tail -10
-urw-times-medium-r-normal--0-0-0-0-p-0-koi8-u
-urw-times-medium-r-normal--0-0-0-0-p-0-microsoft-cp1251
times-bold
times-bold
times-bolditalic
times-bolditalic
times-italic
times-italic
times-roman
times-roman

I did have the fontserver turned off.. chkconfig had it off. So I enabled it in chkconfig and started fontserver manually... xfs is running. No change to Xfig though.

So I give up.. anyone else have Xfig working with fonts? :)

User avatar
TruHobbyist
Posts: 26
Joined: Sat Feb 13, 2016 2:16 pm

Re: Xfig and fonts

Unread postby TruHobbyist » Fri Feb 26, 2016 7:20 am

Hi there!

Never used Xfig myself but to give some ideas...

If you use XServer and Fontserver on the same machine, then there won't be much of a difference when starting the Fontserver since the fonts are not installed.

When fonts are missing you have 3 options:

1) Install the missing fonts (recommended)
--> https://archive.org/stream/xwindowsyste ... 8/mode/1up

Chapter 5, 5.3 Adding New Fonts

1.1) XServer without Fontserver

- After having installed the fonts, check with

# xset -q

that they are in your fontpath, as above in your post.

- Rehash the XServer with

# xset fp rehash

- Fire up Xfig

1.2) XServer with Fontserver

- After having installed the fonts, start up the Fontserver.

/usr/bin/X11/fs (or whatever)

- Check with

# fsinfo -server tcp/127.0.0.1:7000

that it is reachable, up and working.

- Add Fontserver to XServer

# xset fp+ tcp/127.0.0.1:7000 (change IP/hostname and/or port accordingly)

- Fire up Xfig

2) Alias the missing fonts to existing ones on your X Server
--> https://archive.org/stream/xwindowsyste ... 8/mode/1up

Chapter 5, 5.3.4.1 Aliasing

This will be tedious since you'll need to add every single missing font-alias by hand. And keep in mind that this is just a dirty workaround in detriment of usability.

2.1) XServer without Fontserver

- Rehash the XServer with

# xset fp rehash

- Fire up Xfig

2.2) See 1.2)

3) Give up


Enjoy :)

User avatar
jirka
Donor
Donor
Posts: 218
Joined: Tue May 04, 2004 7:55 am
Location: Czech Republic
Contact:

Re: Xfig and fonts

Unread postby jirka » Fri Feb 26, 2016 10:41 am

It's not a solution but I use "xfig -nosc" to avoid error messages.

User avatar
rqsall
Posts: 42
Joined: Fri May 20, 2005 6:02 am

Re: Xfig and fonts

Unread postby rqsall » Sun Sep 25, 2016 7:19 am

Haven't posted in a while, but when looking for a solution to this problem, this thread turned up in google. The weird thing for me was that it works fine on an Indy with IRIX 6.5.22 but would give errors on my O2 with IRIX 6.5.30.

The hint to solve this problem came from another link in the same google search, hidden in a Debian bug report: https://bugs.debian.org/cgi-bin/bugrepo ... bug=366948

The problem on IRIX 6.5.30 (and others that have the Artifex fonts installed I imagine) is the file /usr/lib/X11/fonts/Type1/fonts.alias.artifex from the x_eoe.sw.Artifex_fonts products. I did a quick workaround by renaming it (it doesn't exist on my Indy and perhaps is not part of IRIX 6.5.22):

Code: Select all

mv/usr/lib/X11/fonts/Type1/fonts.alias.artifex  /usr/lib/X11/fonts/Type1/__fonts.alias.artifex__
However, this may give problems with xpdf and ghostscript. Trying to remove it with inst or swmgr caused a conflict with xpdf and ghostscript. I tested xpdf with a file real quick and it seemed ok.

Code: Select all

xset -fp rehash
to activate it or restart X.

No more errors from xfig and it shows the proper fonts as far as I can determine. It bugged me because a drawing I had made on the O2 came out all wrong on the Indy with regard to the fonts of the text.
Requickstarting ELF files (see rqsall(1))

User avatar
necron2600
Posts: 279
Joined: Tue May 26, 2015 10:38 pm
Location: Boston

Re: Xfig and fonts

Unread postby necron2600 » Wed Oct 05, 2016 8:45 pm

Thank you very much rqsall!


Return to “IRIX and Software”

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest