home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / softsys / andrew / 1222 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  2.2 KB

  1. Path: sparky!uunet!wupost!sdd.hp.com!hplabs!ucbvax!rchland.ibm.com!tinglett+
  2. From: tinglett+@rchland.ibm.com (Todd Inglett)
  3. Newsgroups: comp.soft-sys.andrew
  4. Subject: Re: fonts when server differs
  5. Message-ID: <Yedb7Ec91Jbd157Xsn@rchland.ibm.com>
  6. Date: 3 Sep 92 20:13:04 GMT
  7. References: <QedWWAu00WoeQ=3F1u@andrew.cmu.edu>
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Reply-To: "Todd Inglett" <tinglett@rchland.vnet.ibm.com>
  10. Distribution: world
  11. Organization: The Internet
  12. Lines: 50
  13.  
  14.  
  15. Excerpts from ext.misc.info-andrew: 3-Sep-92 Re: fonts whenserver
  16. differs Fred Hansen@RCHGATE.rchl (614+0)
  17.  
  18. > I should have pointed out that I was not refering so much tosending
  19. > entire fonts for Andrew applications as to sending the few
  20. > specialsymbols that some applications want.  For instance the standard
  21. > arrow cursorand scrollbar symbols. In many cases these are used as
  22. > cursors, so it isreasonable to have them in pixmaps anyway.
  23.  
  24. I agree.  I would like to have a way to draw a pixmap and create cursors
  25. froma pixmap.  It seems a bit silly to create a font with a single glyph
  26. just so Ican have a custom cursor or an icon in a button.  Preferably,
  27. ATK would offermethods to convert X11 bitmaps and XPM pixmaps (which
  28. just happen to be validC code) into a pixmap.  Here is an example of a
  29. full color XPM pixmap:
  30.  
  31.     /* XPM2 C */
  32.     static char ** foo.px  = {
  33.     "19 18 4 1",
  34.     "   m white  c #FF00FF00FF00",
  35.     ".  m black  c dark green",
  36.     "X  m black  c MidnightBlue",
  37.     "o  m black  c #F600DF00B400",
  38.     "       .......     ",
  39.     "      .........    ",
  40.     "  XXX.... .. ..XXX ",
  41.     " Xooo...........ooX",
  42.     " Xooo...........ooX",
  43.     " Xooo...........ooX",
  44.     "  XXX... ... ..XXX ",
  45.     "      ...   ...    ",
  46.     "       .......     ",
  47.     "        .....      ",
  48.     "    o    o         ",
  49.     "     oo  o         ",
  50.     "       oooooooo    ",
  51.     "         o         ",
  52.     "         o         ",
  53.     "         o         ",
  54.     "       oooo        ",
  55.     "     oo    oo      "};
  56.  
  57. Don't ask me what it is.  I just doodled it up (with a pixmap editor)
  58. for thisexample.  The first line says it is a 19x18 image with four
  59. colors and eachcolor is represented by a single character.  The neat
  60. thing about this formatis that it specifies what to do on both a
  61. monochrome and color screen.
  62.  
  63. -todd inglett
  64.