home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8429 < prev    next >
Encoding:
Text File  |  1992-08-16  |  2.6 KB  |  74 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!boulder!ophelia!drew
  3. From: drew@ophelia.cs.colorado.edu (Drew Eckhardt)
  4. Subject: Re: How does one set default font sizes in X?
  5. Message-ID: <1992Aug17.073157.29710@colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: ophelia.cs.colorado.edu
  8. Organization: University of Colorado at Boulder
  9. References: <1992Aug17.003936.1414@tc.cornell.edu>
  10. Distribution: na
  11. Date: Mon, 17 Aug 1992 07:31:57 GMT
  12. Lines: 60
  13.  
  14. In article <1992Aug17.003936.1414@tc.cornell.edu> cougar@eos.acm.rpi.edu (Erik Collin) writes:
  15. >When I open a window in X I get a small font and have to change it to the
  16. >"large" font by hand using control-right mouse button.  I've looked at .twmrc
  17. >and .xinit files and didn't see anything that looked like it would let me
  18. >get a larger font on startup.  Anyone know what to change to get a larger 
  19. >type size?
  20. >
  21. On a case-by-case basis, xterm may be started with the "-fn" flag, for
  22. Font Name.  This will let you specify a font and a size, using
  23. the usual wild-card matching.
  24.  
  25. Ie :
  26.  
  27. ophelia% xterm -fn 10x20
  28.  
  29.  
  30. This starts an xterm, with the 10x20 font.
  31.  
  32. Also, you can change the resources for xterm.  Normally, you set up your
  33. .xinitrc or .xsession to run xrdb -load on some file, like ~/.Xresources,
  34. or ~/.Xdefaults.  
  35.  
  36. xterm*font:    fn
  37.  
  38. will set the default font.  Ie, to set it to 10x20, you would say
  39. xterm*font:    10x20.
  40.  
  41. Similar resources exist for the buttons, etc.  RTFM.
  42.  
  43. >that says:
  44. >
  45. >Warning:Cannot convert string "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-is
  46. >o8859-*" to type FontStruct
  47. >
  48. >Any ideas on what that means?
  49.  
  50. 'X' has 1.5 gajillion fonts floating around.  Naturally, you don't 
  51. want to specify "I want a Roman, Italic, Medium font that is 
  52. 100dpi, 243 points, proportionally spaced, from the adobe registry using 
  53. the... because on a smaller system, with fewer fonts, you couldn't 
  54. match it. So, you use wildcards, and hope for a close match.
  55.  
  56.  
  57. -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
  58. matches an Adobe Helvitica, Bold, no italic, 120 point font in the iso8859   
  59. registry.  See your 'X' manpage.  It can't find this, and substituted
  60. something else instead, probably "fixed"
  61.  
  62. --
  63.  
  64. On a fleshed out system, there will be lots of fonts.  Megabytes.  
  65. You might want to look at the xfontsel client, it's an easy way to 
  66. preview multiple fonts, and see what matches the wildcards on 
  67. most systems.
  68.  
  69.  
  70. -- 
  71. Microsoft is responsible for propogating the evils it calls DOS and Windows, 
  72. 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. 
  73.  
  74.