Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!nsc!csi!msommer
From: msommer@csi.UUCP (Mark Sommer)
Newsgroups: comp.sys.att
Subject: Unix PC font info requested.
Message-ID: <1309@csib.csi.UUCP>
Date: Tue, 1-Dec-87 14:51:36 EST
Article-I.D.: csib.1309
Posted: Tue Dec  1 14:51:36 1987
Date-Received: Sat, 5-Dec-87 11:23:24 EST
Reply-To: {bnrmtv|epimass|varian|sono|nsc|sri-spam}!csi!animo!mark
Organization: Communications Solutions Inc., San Jose, Ca.
Lines: 21
Keywords: Unix PC, system font, window(7)
Summary: How can a program get the system font file name.


First off, thanks to all that responded to my last query about the device
driver information.  We'll see what comes of it.

Secondly, I'm in the middle of writing a checkbook program on the UNIX PC with
a fancy User Interface (all the bells and whistles).  One of the features of
the program is that it lets the user specify the font to use for displaying
checkbook entries and possibly a separate font for interacting with the
program's function set.  The problem I'm having is that if either font is
malformed or cannot be accessed for some reason, I'd like to be able default to
the system font.

How do I determine what that font file name is?

WINDOW(7) doesn't help much because the IOCTL that returns slot ids does so in
the form of inodes.  I know of no easy method for which I can then get the font
file name from the inode.  I could enumerate the /usr/lib/wfont directory and
search for the file with that inode (I guess), but is the font always going to
be in this directory?  Anybody have any other suggestions?  Any help is very
much appreciated.  Thanks!

~Mark