home *** CD-ROM | disk | FTP | other *** search
Wrap
Newsgroups: comp.os.linux Path: sparky!uunet!boulder!ophelia!drew From: drew@ophelia.cs.colorado.edu (Drew Eckhardt) Subject: Re: How does one set default font sizes in X? Message-ID: <1992Aug17.073157.29710@colorado.edu> Sender: news@colorado.edu (The Daily Planet) Nntp-Posting-Host: ophelia.cs.colorado.edu Organization: University of Colorado at Boulder References: <1992Aug17.003936.1414@tc.cornell.edu> Distribution: na Date: Mon, 17 Aug 1992 07:31:57 GMT Lines: 60 In article <1992Aug17.003936.1414@tc.cornell.edu> cougar@eos.acm.rpi.edu (Erik Collin) writes: >When I open a window in X I get a small font and have to change it to the >"large" font by hand using control-right mouse button. I've looked at .twmrc >and .xinit files and didn't see anything that looked like it would let me >get a larger font on startup. Anyone know what to change to get a larger >type size? > On a case-by-case basis, xterm may be started with the "-fn" flag, for Font Name. This will let you specify a font and a size, using the usual wild-card matching. Ie : ophelia% xterm -fn 10x20 This starts an xterm, with the 10x20 font. Also, you can change the resources for xterm. Normally, you set up your .xinitrc or .xsession to run xrdb -load on some file, like ~/.Xresources, or ~/.Xdefaults. xterm*font: fn will set the default font. Ie, to set it to 10x20, you would say xterm*font: 10x20. Similar resources exist for the buttons, etc. RTFM. >that says: > >Warning:Cannot convert string "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-is >o8859-*" to type FontStruct > >Any ideas on what that means? 'X' has 1.5 gajillion fonts floating around. Naturally, you don't want to specify "I want a Roman, Italic, Medium font that is 100dpi, 243 points, proportionally spaced, from the adobe registry using the... because on a smaller system, with fewer fonts, you couldn't match it. So, you use wildcards, and hope for a close match. -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-* matches an Adobe Helvitica, Bold, no italic, 120 point font in the iso8859 registry. See your 'X' manpage. It can't find this, and substituted something else instead, probably "fixed" -- On a fleshed out system, there will be lots of fonts. Megabytes. You might want to look at the xfontsel client, it's an easy way to preview multiple fonts, and see what matches the wildcards on most systems. -- Microsoft is responsible for propogating the evils it calls DOS and Windows, IBM for AIX (appropriately called Aches by those having to administer it), but neither is as bad as AT&T. Boycott AT&T, and let them know how you feel.