msommer@csi.UUCP (Mark Sommer) (12/01/87)
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