Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!iris!cook From: cook@iris.ucdavis.edu (Doug Cook) Newsgroups: comp.windows.x Subject: Re: XView...How does it find the fonts? Keywords: XView.config, Imake, FONTINSTDIR Message-ID: <6064@ucdavis.ucdavis.edu> Date: 28 Nov 89 22:53:29 GMT References: <2740@ucrmath.UCR.EDU> Sender: uucp@ucdavis.ucdavis.edu Reply-To: cook@gandalf.ucdavis.edu (Doug Cook) Organization: Sun Microsystems, Inc. / UC Davis EECS dept. Lines: 32 In article <2740@ucrmath.UCR.EDU> yakker@ucrmath.UUCP (Matt Robinson) writes: > I am trying to compile the libraries of XView our the Sun Sparcstation. > I have everything working fine now (Thanks to all of the suggestions > given to me ... Imake is a gift from God.), but I can't get the programs > I compile in XView to properly read from the fonts directory. If anyone > has compiled this before, we store our libraries in /usr/local/lib, and > we hold all X11 fonts in /usr/local/lib/X11/fonts. All of the binaries > are in /usr/local/bin/X11. There is a variable in the initial XView.config > referring to the fonts directory, labelled /usr/local/lib/X11/fonts. The > only pronblem is that there is another variable called FONTINSTDIR which > also specifies the fonts directory. Which one do I use? There are two distinct problems here. The first is getting the fonts installed on your system; this is what the FONTINSTDIR macro is for. It tells Imake where to put the fonts when it installs them. So if you had problems installing the fonts, this is where you'll want to take a look. The second problem is getting the XView clients to work with the installed fonts. Recall that with the X Window System, it is the server's job, not the client's, to locate the fonts. Hence, once you've installed the fonts, you need to make sure that your server can get to them. Whatever directory you've installed the XView fonts in must be in your server's fontpath, or it won't be able to find them. Use the "xset" program to examine and change your server's fontpath. You may also have to rehash the fontpath when done ("xset fp rehash"). If you encounter more difficulties, please get in touch. -Doug Doug Cook dmc@sun.com Window Systems Group cook@gandalf.ucdavis.edu Sun Microsystems, Inc.