home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / atari / st / 13493 < prev    next >
Encoding:
Text File  |  1992-09-09  |  3.6 KB  |  72 lines

  1. Newsgroups: comp.sys.atari.st
  2. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!rosenkra
  3. From: rosenkra@convex.com (William Rosenkranz)
  4. Subject: Re: / man confusion.
  5. Message-ID: <1992Sep09.210901.14844@convex.com>
  6. Sender: usenet@convex.com (news access account)
  7. Nntp-Posting-Host: convex1.convex.com
  8. Organization: CONVEX Computer Corporation, Richardson, Tx., USA
  9. References: <memo.616450@cix.compulink.co.uk> <1992Sep08.205732.5916@convex.com> <H.WhWvVJ7bTvU@jonh.wimsey.bc.ca>
  10. Date: Wed, 09 Sep 1992 21:09:01 GMT
  11. X-Disclaimer: This message was written by a user at CONVEX Computer
  12.               Corp. The opinions expressed are those of the user and
  13.               not necessarily those of CONVEX.
  14. Lines: 56
  15.  
  16. In article <H.WhWvVJ7bTvU@jonh.wimsey.bc.ca> jhenders@jonh.wimsey.bc.ca writes:
  17. >    One thing I couldn't find in the man package was any info on how
  18. >to change the fonts. Are they built into the pager? I find the default 
  19. >ones show up a bit large, and would like to change them. What fonts
  20. >are they compatble with?
  21.  
  22. manpager has fonts stored internally in the .ttp file as data. they are
  23. a set of 8x16 fonts (times, times-bold, times-underline, times-inverse,
  24. and special) that i hacked together from the normal 8x16 sytem fonts with
  25. a font editor (i think i used chedit). there are no loadable fonts.
  26.  
  27. the basic times font was derived form an MGR font (.fnt) and convrted to
  28. a .fed file (my tools). the actual image in memory is just the data portion
  29. of the .fed file. this is also true of the system font normally. so it
  30. should not be hard to make loadable fonts, at least from .fed files.
  31.  
  32. font changes are flagged with vt100/ansi-like escapes, ie when manpager
  33. sees a string "ESC [ 1 m" it pokes the address of the bold font data into
  34. the line a structure in the system. the codes are (for memory)
  35.  
  36.     ESC [ 1 m    start bold (same as vt100)
  37.     ESC [ 4 m    start italic (simulated with underline, like vt100)
  38.     ESC [ 9 m    start special font (vt100 extension)
  39.     ESC [ m        start normal font.
  40.  
  41. when the program exits, it pokes back in the saved original address of the
  42. system font header, and all is back to "normal".
  43.  
  44. this used to be ok (line A was an accepted practice way back when). today,
  45. with STe, TT, falcon, special devices, etc, it is not. however, manpager
  46. is actually a small subset of less (tho i think i wrote it from scratch)
  47. and is physically small in number of lines (relative to the equivalent
  48. gem code). for me (and probably others), this is just fine (until i get
  49. a falcon, that is... :-).
  50.  
  51. so, to finally answer your question, u are stuck with whatever 8x16 font
  52. you can find. but then again, you'll have to hard code the data into
  53. the program and recompile.
  54.  
  55. if you want selectable fonts on the fly (and a mechanism to support this
  56. in the document formatting process), look elsewhere. i suspect groff will
  57. support -Tterm (ie /usr/lib/term/*) so that it could be configured to make
  58. it simple to support whatever "device" you want (in this case manpager is
  59. a device). in fact, i have also ported real unix nroff recently, and hacked
  60. it to do just that (the lib/term files are now ascii rather than .o files
  61. to make it easy to modify, and more portable). however, i cannot post this
  62. since it is AT&T code. in fact, i almost never use it anyway, prefering
  63. my own nroff for everything but totally unruly documents. note that the
  64. nroff i did post is 0% AT&T code (it was ultimately derived from some PD
  65. code i found on the net, like roff or the DECUS variant).
  66.  
  67. -bill
  68. rosenkra@convex.com
  69. -- 
  70. Bill Rosenkranz            |UUCP: {uunet,texsun}!convex!rosenkra
  71. Convex Computer Corp.      |ARPA: rosenkra@convex.com
  72.