Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!mcnc!rti!xyzzy!brennan From: brennan@rtp.dg.com (Dave Brennan) Newsgroups: comp.windows.x Subject: Re: User definable font aliases Message-ID: Date: 14 Apr 90 02:28:50 GMT References: <134169@sun.Eng.Sun.COM> Sender: usenet@xyzzy.UUCP Organization: Data General, RTP, NC Lines: 33 In-reply-to: argv%turnpike@Sun.COM's message of 9 Apr 90 17:37:35 GMT In article <134169@sun.Eng.Sun.COM> argv%turnpike@Sun.COM (Dan Heller) writes: The system administrator can edit fonts.dir and fonts.alias, but there doesn't seem to be a way for the user to do this. It would sure be nice for me to alias one of those very long font names to a common name that I'd like to use. Anyone have ideas on this? I not only have an idea, I know of a way to do it :-) Create a directory to keep your for aliases. For this exercise, we'll use /usr/joe/X11/fonts. In this directory place a file called "fonts.alias". Each line of this file should contain your alias, white space, then an exisiting font name. For example, your file might contain these lines: times10 -adobe-times-medium-r-normal--10-100-75-75-p-54-iso8859-1 helv10 -adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso8859-1 cour10 *courier-m*-r*--10* Now run the following commands: (You'll probably want to put these somewhere that will get them executed whenever you run X.) % xset fp+ /usr/joe/X11/fonts [ you're font dir goes here ] % xset fp rehash To convince yourself that this _really_ did work, you can try % xfd cour10 Hope this helps! -- _________ Dave Brennan, User Interfaces, Data General Corp. / brennan@dg-rtp.dg.com Research Triangle Park, North Carolina, 27709 / ...mcnc!rti!dg-rtp!brennan Hm: (919) 460-5725 Wk: (919) 248-6330 _________/ dave_brennan@rpitsmts.bitnet