home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!sdd.hp.com!hplabs!ucbvax!rchland.ibm.com!tinglett+
- From: tinglett+@rchland.ibm.com (Todd Inglett)
- Newsgroups: comp.soft-sys.andrew
- Subject: Re: fonts when server differs
- Message-ID: <Yedb7Ec91Jbd157Xsn@rchland.ibm.com>
- Date: 3 Sep 92 20:13:04 GMT
- References: <QedWWAu00WoeQ=3F1u@andrew.cmu.edu>
- Sender: daemon@ucbvax.BERKELEY.EDU
- Reply-To: "Todd Inglett" <tinglett@rchland.vnet.ibm.com>
- Distribution: world
- Organization: The Internet
- Lines: 50
-
-
- Excerpts from ext.misc.info-andrew: 3-Sep-92 Re: fonts whenserver
- differs Fred Hansen@RCHGATE.rchl (614+0)
-
- > I should have pointed out that I was not refering so much tosending
- > entire fonts for Andrew applications as to sending the few
- > specialsymbols that some applications want. For instance the standard
- > arrow cursorand scrollbar symbols. In many cases these are used as
- > cursors, so it isreasonable to have them in pixmaps anyway.
-
- I agree. I would like to have a way to draw a pixmap and create cursors
- froma pixmap. It seems a bit silly to create a font with a single glyph
- just so Ican have a custom cursor or an icon in a button. Preferably,
- ATK would offermethods to convert X11 bitmaps and XPM pixmaps (which
- just happen to be validC code) into a pixmap. Here is an example of a
- full color XPM pixmap:
-
- /* XPM2 C */
- static char ** foo.px = {
- "19 18 4 1",
- " m white c #FF00FF00FF00",
- ". m black c dark green",
- "X m black c MidnightBlue",
- "o m black c #F600DF00B400",
- " ....... ",
- " ......... ",
- " XXX.... .. ..XXX ",
- " Xooo...........ooX",
- " Xooo...........ooX",
- " Xooo...........ooX",
- " XXX... ... ..XXX ",
- " ... ... ",
- " ....... ",
- " ..... ",
- " o o ",
- " oo o ",
- " oooooooo ",
- " o ",
- " o ",
- " o ",
- " oooo ",
- " oo oo "};
-
- Don't ask me what it is. I just doodled it up (with a pixmap editor)
- for thisexample. The first line says it is a 19x18 image with four
- colors and eachcolor is represented by a single character. The neat
- thing about this formatis that it specifies what to do on both a
- monochrome and color screen.
-
- -todd inglett
-