[comp.sys.mac] LaserWriter Plus Fonts

dubois@uwmacc.UUCP (Paul DuBois) (01/24/87)

The net comes through again.  Thanks *very much* to all the people
who dug out FEdit, ResEdit, looked through their documentation, and
so forth.  For others who may be interested, here's a summary of the
information.

By the way, my query asked about the LaserWriter II.  What a dope.  I
should have said LaserWriter Plus.

Real font name          Mac FOND name          Font     Resource id of
                                                ID       point size 0

ITC Zapf Dingbats	Zapf Dingbats		13           1664
ITC Bookman		Bookman			14           1792
Helvetica Narrow	N Helvetica Narrow	15           1920
Palatino		Palatino		16           2048
ITC Zapf Chancery	Zapf Chancery		18           2304
ITC Avant Garde		Avant Garde		33           4224
New Century Schoolbook	New Century Schlbk	34           4352

Helvetica, Times, Palatino, and New Century Schoolbook are trademarks of
	Allied Coporation.
ITC Avant Garde, ITC Bookman, ITC Dingbats, ITC Zapf Chancery are trademarks of
	International Typeface Corporation.

A word about the "Resource id of point size 0".  You'll note that the
number is always 128 * Font ID.  Resource numbers of fonts are computed
as (128 * Font ID) + point size, i.e., point size in bits 0-6, font number
in bits 7-15 (at least for the old numbering scheme).  The resource id
of the font that equals 128 * Font ID + 0 corresponds to a point size of
zero, which is illegal:  such a resource is used only for the font name
(it's the resource name).  My observations show that resources for the
other point sizes are unnamed.  (Note that if you open up the FONTs of
a file with ResEdit, you'll get very different results if you hold the
option key down than if you don't.)

I'm only mentioning it because up until yesterday I didn't know it
(having perused the Font Manager section of Inside Macintosh only
cursorily previously), and thought someone else might like to know.

I notice that several people mentioned FOND resources in their messages.
I know that these are supposed to describe entire font families, but
otherwise am quite in the dark about them.  From my mail, I am led to
speculate that the FOND resource id for a particular font family is
also the Font ID for the family.  Would anyone care to comment further?

---
Paul DuBois     UUCP: {allegra,ihnp4,seismo}!uwvax!uwmacc!dubois    |
                ARPA: dubois@easter                               --+--
                      dubois@rhesus                                 |
                                                                    |
"Don't we have enough madmen around here already?"
                                 I Samuel 21:15

lsr@apple.UUCP (01/26/87)

In article <935@uwmacc.UUCP> dubois@uwmacc.UUCP (Paul DuBois) writes:
>
>I notice that several people mentioned FOND resources in their messages.
>I know that these are supposed to describe entire font families, but
>otherwise am quite in the dark about them.  From my mail, I am led to
>speculate that the FOND resource id for a particular font family is
>also the Font ID for the family.  Would anyone care to comment further?
>

This is correct; the FOND resource describes a whole family of fonts.  They
are only supported on 128K ROMs.  Inside Macintosh Volume IV explains about
FOND's in more detail.

One use of this is to remove the limit of 256 fonts imposed by the
128*FontID convention.  Another is to allow the system to have different
fonts for different styles.  For example, a FOND resource can specify that
the bold version of a particular family is formed by smearing the plain
font, but that the italic version can be found a separate FONT resource
(rather than slanting the plain version).  The FOND resource also contains
the font width table and character kern table.

-- 
Larry Rosenstein

Object Specialist
Apple Computer

AppleLink: Rosenstein1
UUCP:  {sun, voder, nsc, mtxinu, dual}!apple!lsr
CSNET: lsr@Apple.CSNET