[comp.unix.aux] How do you change fonts on A/UX?

mouser@Portia.Stanford.EDU (Michael Wang) (08/23/88)

Is there anyway to add more fonts to the A/UX System file?  I would like to
add a better version of the Monaco font that has a zero with a slash
through it and a lowercase l ('L') that doesn't look like an uppercase I
('i').  I tried copying the file /usr/lib/mac/System onto a floppy and
modifying the System file with the Font/DA Mover, but when I copied the new
file back to the A/UX system, the program term didn't recognize the new font
changes.  I think part of the problem is that A/UX expects the System file to
be in Apple Single format while both the mfs program and the StarNine
Utilities package use the Apple Double format.  Anybody have any ideas?

-Michael Wang

+---------------+-----------------------------------------------------------+
| Michael Wang  |  Stanford University, Stanford, CA  94305                 |
|---------------+-----------------------------------------------------------|
| ARPAnet, CSNET, BITNET, Internet:  mouser@portia.stanford.edu             |
| UUCP:  ...decwrl!portia.stanford.edu!mouser          AppleLink:  ST0064   |
+---------------------------------------------------------------------------+

kaufman@polya.Stanford.EDU (Marc T. Kaufman) (08/23/88)

In article <3409@Portia.Stanford.EDU> mouser@portia.stanford.edu (Michael Wang) writes:
>Is there anyway to add more fonts to the A/UX System file?  I would like to
>add a better version of the Monaco font that has a zero with a slash
>through it and a lowercase l ('L') that doesn't look like an uppercase I
>('i').  I tried copying the file /usr/lib/mac/System onto a floppy and
>modifying the System file with the Font/DA Mover, but when I copied the new
>file back to the A/UX system, the program term didn't recognize the new font
>changes.  I think part of the problem is that A/UX expects the System file to
>be in Apple Single format while both the mfs program and the StarNine
>Utilities package use the Apple Double format.  Anybody have any ideas?

The problem is that Monaco is a system font, and is contained in ROM.  Making
changes to the disk font has no effect on the ROM version the system actually
uses...   UNLESS you add an entry to the ROv# resource for your system,
directing it to use the disk resource instead of the ROM resource.  See IM-V
pages 30-32.  I believe that system patches and ROM overides installed at the
time SASH boots are honored by A/UX.

I have done the above for my system, but have not checked A/UX operation.  Note
that you will have to re-do the ROv# mod every time the system is upgraded,
because the installer scripts justifiably assume that only Apple can specify
which ROM resources should be overridden.

Marc Kaufman (kaufman@polya.stanford.edu)

phil@Apple.COM (Phil Ronzone) (08/24/88)

In article <3409@Portia.Stanford.EDU> mouser@portia.stanford.edu (Michael Wang) writes:
>Is there anyway to add more fonts to the A/UX System file?  ...
>... I tried copying the file /usr/lib/mac/System onto a floppy and
>modifying the System file with the Font/DA Mover, but when I copied the new
>file back to the A/UX system, the program term didn't recognize the new font
>changes.

Hmm - two things.
First, the way I do it is to copy Font DA Mover to the A/UX system, along
with a Font file, and launch (see launch(1)) Font DA Mover. I just verified
this for an A/UX 1.0 system (but was using Font DA Mover 3.8a4 - internal
version -- it should work with late model Font DA Movers though).

Second - term recognizes only fixed width fonts. The way it decides this is to
check and see if the pixel width for '.' and 'W' are the same. if they are
not, then term ignores the font.

I have done the approach of moving the A/UX system file over to Mac OS and
used Font DA Mover to add a zillion fonts -- works fine. But I prefer to
bring Font DA Mover and the fonts over to A/UX - its easier, and any way,
my A/UX system file is now > 2,000,000 bytes, so it is kinda hard to be
moving around.

+------------------------+-----------------------+----------------------------+
| Philip K. Ronzone      | A/UX System Architect | APPLELINK: RONZONE1        |
| Apple Computer         +-----------------------+----------------------------+
| Mail Stop 27AJ         | "Forgive him Caesar, for he is a barbarian, and    |
| 10500 N. DeAnza Blvd.  |  thinks the features of his release are the ways   |
| Cupertino CA 95014     |  of nature."                                       |
+------------------------+----------------------------------------------------+
|{amdahl,decwrl,sun,voder,nsc,mtxinu,dual,unisoft}!apple!phil                 |
+-----------------------------------------------------------------------------+

blknowle@uokmax.UUCP (Bradford L Knowles) (08/24/88)

In article <3409@Portia.Stanford.EDU> mouser@portia.stanford.edu (Michael Wang) writes:
>Is there anyway to add more fonts to the A/UX System file?  I would like to
>add a better version of the Monaco font that has a zero with a slash
>through it and a lowercase l ('L') that doesn't look like an uppercase I
>('i').  I tried copying the file /usr/lib/mac/System onto a floppy and
>modifying the System file with the Font/DA Mover, but when I copied the new
>file back to the A/UX system, the program term didn't recognize the new font
>changes.
[...stuff deleted about the possible problem...]
>
>-Michael Wang
>
>| ARPAnet, CSNET, BITNET, Internet:  mouser@portia.stanford.edu             |
>| UUCP:  ...decwrl!portia.stanford.edu!mouser          AppleLink:  ST0064   |

I thought that Monaco was one of the four fonts that were included in
the ROM on the Mac II!  Am I right?  To see if I am, try using some
word processor under MacOS with the Monaco font.  If your modification
shows up, them I'm probably wrong.  If I'm right, you may have to change
font id's or something bizarre like that.  I seem to remember a piece in
an old issue of MacUser that told someone how to modify their system to
use their modified Chicago font, so this might work similarly--I'll try
to find it and get back to you.

-Brad Knowles

UUCP: ...!ihnp4!occrsh!uokmax!blknowle     ARPA: blknowle@uokmax.ecn.uoknor.edu
SNAIL: 1013 Mobile Circle
       Norman, OK  73071-2522

Disclaimer: (The above opinions are my own.  They have nothing to do with the
		Univeristy of Oklahoma nor intelligance of any sort. :-)

mouser@Portia.Stanford.EDU (Michael Wang) (08/24/88)

In article <3409@Portia.Stanford.EDU> I write:
> Is there anyway to add more fonts to the A/UX System file?  I would like to
> add a better version of the Monaco font that has a zero with a slash
> through it and a lowercase l ('L') that doesn't look like an uppercase I
> ('i').
[ stuff deleted ]

Thanks for all the help with my problem of installing fonts onto the A/UX
System file (special thanks to Mike Chow, Marc Kaufman, and Phil Ronzone).

This is how I finally did it:

1) Renamed my modified Monaco font with ResEdit so that I wouldn't have
   to muck around with installing ROv# resources and such.

2) Copied my font and Font/DA Mover 3.6 onto my A/UX disk using the
   wonderful StarNine Utilities package.

3) 'Launched' Font/DA Mover and installed my font!

Thanks again!

-Michael Wang

+---------------+-----------------------------------------------------------+
| Michael Wang  |  Stanford University, Stanford, CA  94305                 |
|---------------+-----------------------------------------------------------|
| ARPAnet, CSNET, BITNET, Internet:  mouser@portia.stanford.edu             |
| UUCP:  ...decwrl!portia.stanford.edu!mouser          AppleLink:  ST0064   | 
+---------------------------------------------------------------------------+