# The Macintosh BASIC Handbook — source transcripts, page 3

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### PDF page 200

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-a280a9b4e00b22e6d71c54eaaf1d0546d44ae62199bd0cf89fdd4b3e52a90e73)

Transcribed text:

o FONT o
Number   Name   Available   type sizes
0   Chicago   (system   font)   12
1or3   Geneva (default)   9, 10, 12, 14, 18,20,24
2   New   York   9,   10,   12,   14,   18,20,24,36
4   Monaco   [fixed   TYid!h)   9,12
5   Veni.ce   14
G   JAtt~Ott   is
7   Athens   18
8   San   11ranoiSoo   18
9   Toronto   9, 12, 14, 18,24
11   ti1   t'   l   ~~   !f)   (Cairo)   rn
12   los   Angeles   12,24
Figure 1: FONT-The   eleven   typefonts on the   BASIC   system disk.
A few of these fonts have special importance. Font 0, Chicago, is the   sys-
tem font.   used for the menu bar, window titles, and system messages. Font 1
is the number for the   application   font, which is used as the default for both
the text window and for the program output. In Macintosh BASIC, the appli-
cations font is 12-point Geneva. Geneva font can therefore be referred to as
either font 1 or font 3.
Other fonts are notable for their artistic effects. New   York,   an adaptation
of the standard Times Roman typesetting font, is very attractive for text mes-
sages, especially in the larger font sizes. Venice and London are ornamental
fonts, and   San   Francisco   is   ••.   well   •..   different. And of course, don't forget
Cairo, a treasure chest of graphics characters ranging from musical notes to
railroad cars.
All but one of the fonts is   proportionally spaced.   In a proportionally spaced
font, each letter occupies only as much space as it needs for its own width.
The letter   i.   for example,   is   much thinner than the rest of the alphabet, while
the letter   m   is much wider. Rather than stretch and squeeze the letters so that
they all fit in the same size space, proportional spacing tailors the spacing so
the letters and words look natural. The typeset words in this book are propor-
tionally spaced.
There is one time, however, when you don't want proportional spacing:
when you're trying to line up columns in a table.   If   the letters have a variable
width, columns after the first may not start on exactly the same vertical line.

Reading notes: Font table entries contain garbled characters (e.g., 'TYid!h)', 'JAtt~Ott', 'ti1 t' l ~~ !f)') and are uncertain. Font 3 and 'Venice' entries have damaged or unclear numbering and names.

Printed product names: Chicago · Geneva · New York · Monaco · Venice · London · Athens · San Francisco · Toronto · Cairo · Los Angeles · Macintosh BASIC

Languages: English

[Original PDF page 200](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=200)

### PDF page 201

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-dafe44defc96be1cee552222cfc209521038e4d84f1cb3355a3d16fc0d9b7bd1)

Transcribed text:

o   FONTo
For that reason, you may occasionally want to use the fixed-width font,
Monaco. Because Monaco is designed with the same width for each character,
you can be sure that all vertical columns   will   be properly aligned.
In addition to the font number, you can specify three other set-options for
the text: FONTSIZE, GTEXTFACE, and GTEXTMODE. These set-options
determine the size, style, and transfer mode for the text to be printed. These
three set-options are summarized in Figure 2.
FONTSIZE is the most important of the other set-options. Every font on
the disk has at least one complete set of characters; some, however, come in
different sizes. By choosing the fontsize, you can decide which size   will   be
used by GPRINT statements.   You   can also choose sizes for fonts that do not
have that size image stored on disk-the Macintosh simply rescales the closest
match   in   that font to the size you specify. In general, a rescaled font   will   not
look as good as a real font from the disk, especially if the specified size is not
an even multiple of one of the sizes available.
With the GTEXTFACE set-option, you can choose any of the following
type styles   for your text: boldface, italic, underline, outline, shadow, con-
densed, and extended. To choose more than one at a time, combine the code
FONTSIZE   GTEXTFACE   GTEXTMODE
9-Pt
10-Pt
12-Pt   0   Plain
1   Boldface
2   .lt.. fllit':'
14-Pt
18-Pt   4   Underline
8   CMIMl!o   10 16   ..... 20-Pt
32   Condensed   1   1 64   Extended
24-Pt
36-Pt
Figure 2: FONT-The other set-options that control the appearance of   GPRINT   text.

Reading notes: Garbled OCR characters in figure legend (e.g., 'CMIMl!o', '.lt.. fllit':''), uncertain reading Reading order of figure 2 table values is unclear

Printed product names: Monaco

Languages: English

[Original PDF page 201](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=201)

### PDF page 202

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-63b71fe8c40abe31fbedac2cea6a483db1b2de484df7db986992e85f19f50ff0)

Transcribed text:

D   FONT   D
numbers by adding them up. With the code number   0,   SET   GTEXTFACE
will produce plain text (the default).
GTEXTMODE sets the transfer mode that determines how the letters of
the text are laid down over text of graphics already on the screen. Generally,
GTEXTMODE works just like   PENMODE,   except that it affects the transfer
of text instead of drawing operations. The default for GTEXTMODE is 9,
rather than 8, the default for   PENMODE.
For more information on the three additional set-options, please refer to the
entries under their respective names.
Sample Program
You can find examples of different type fonts   in   programs throughout this
book. Here, however, we'll stick with a simple program that uses the Cairo
font to create easy graphics:
1   FONT-Sample   Program (Cairo Express)
SET   OUTPUT   ToScreen
SET   FONT 11
SET   FONTSIZE   18
Caboose$   =   "H"
Flatcar$   =   "F"
Boxcar$ =   "G"
Locomotive$   =   "J"
GPRINT
RANDOMIZE
FOR Line= 1   TO   11
Train$ =   Caboose$
FOR   Cars=O   RND(12)
IF   RND(3)   >   1 THEN
Train$   =   Train$ & Boxcar$
ELSE
Train$   =   Train$ &   Flatcar$
END   IF
NEXT Cars
Train$   =   Train$   &   Locomotive
GPRINT   Train$
NEXT Line
!   Full-screen   output
1   Cairo font
118-Point
! 1 to 12 cars in train
! Choose   randomly:
! Two boxcars
! For each flatcar
The picture shown   in   Figure 3 is simple text output composed of the capital
letters   F,   G, H, and J. Because it is printed   in   the Cairo font, however, the let-   -
ters come out as pictures.

Reading notes: Source text begins mid-sentence and the primary heading is not visible in the supplied copy. Program listing line numbering and some characters appear garbled from OCR (e.g., 'FOR Cars=O TO RND(12)').

Languages: English

[Original PDF page 202](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=202)

### PDF page 203

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-e670fb75e2328a0e595cfdb949be19dfb59955bb3aab113ae6cbc552da84ed9d)

Transcribed text:

o   FONT   o
FONT-Coiro   EHpress
~~~
~111111111ti
Figure 3:   FONT-Output   of sample program.
Notes
-The   FONT   set-option works only with GPRINT, not with PRINT. Text
displayed by the   PRINT   statement is always typed in 12-point Geneva, unless
you choose a different font for the output window by pulling down the Fonts
menu. After a program is over, a choice of a font on the Fonts menu will ret-
roactively change   all   PRINT   text currently displayed in the output window.
The Fonts menu, on the other hand, does not affect GPRINT, except to
alter some of its default settings.   If   you are using GPRINT statements for
your output, you should never have to touch the Fonts menu. The Fonts
menu will not change GPRINT text after the program is done.
-PRINT and   INPUT   statements reset the font and the other graphics text
set-options to their default values (12-point Geneva).   So,   if you combine
PRINT   with GPRINT, you should remember to set   all   of the graphics font
information over again after every   PRINT   or   INPUT   statement.
The graphics font is also reset by the GTEXTNORMAL statement.
•
Ill

Reading notes: Possible OCR artifacts in heading line 'FONT-Coiro EHpress' and '~111111111ti'

Languages: English

[Original PDF page 203](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=203)

### PDF page 204

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-d923f2d9a4d58a5c5ccfe5291ec6044b8683d93400bef55f2f789db7f7fc2aec)

Transcribed text:

~   J._____F_O_N_T_S_IZ_E _   ____,JI   Z=
Syntax
Graphics text set-option-establishes the
point size for GPRINT text output.
[I]   SET   FONTSIZE   N
~   ASK   FONTSIZE   N
Sets   or checks the point size of the font that will be used in
GPRINT statements.
Description
FONTSIZE   is   the set-option that lets you choose the size of the text that
will   be printed by GPRINT statements. It is often used with the other text set-
options   FONT,   GTEXTFACE, and GTEXTMODE.
You   specify the size of text in   points,   a unit of measurement borrowed from
the field of typesetting. Each point corresponds to a height of approximately
1/72 of an inch. Point size is measured from the top of a capital letter to the
bottom of the letters that go beneath the base line, such as   g   and   y.   The larger
the point size, the larger the letters on the screen   will   be.
To set the point size, give the command
SET   FONTSIZE   Points
The number of points can be any integer greater than 1; practically, ·however,
any size under 6 points is unreadable. Passing a point size of   0   resets the
default size, 12.
Each   type   font on the Macintosh BASIC disk   is   represented by an image of
all the letters and symbols in at least one point size; the image consists of data

Reading notes: Source begins with damaged characters and stray marks before the readable text. Reading order around the margin text 'J._____F_O_N_T_S_IZ_E' is uncertain.

Languages: English

[Original PDF page 204](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=204)

### PDF page 205

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-06ad61e253b7ee2e42a0206cdbd179201178992e9cf2a58aee1a61da4008b787)

Transcribed text:

o   FONTSIZE   o
defining all the font's characters in that particular size. Ideally, the font should
have an image available for every size you plan to use. However, since the
images for each point size take up a lot of space on the disk, only the most
important sizes are provided. 1\vo fonts, Geneva (1) and New York (2), come
in a large variety of sizes; others come with only one. For a list of all the type
size images available for each font, see the preceding entry for   FONT.
You are free to choose any fontsize you wish; not just the ones that have an
actual image on the disk.   If   the fontsize is not available for the font you are
using, the computer   will   follow a series of steps to improvise a reasonable font
by adjusting the image of a size that is available. The computer tries the fol-
lowing approaches in sequence, until it reaches one that works:
1. If there is a larger point size that is an even multiple of the point size
called for, the larger size is scaled down.
2.   If   there   is   a smaller point size that   is   an even divisor of the size called for,
it   is   scaled up.
3.   If   there is a larger size that is not an even multiple, it   is   scaled down to
fit.
4.   If   there   is   a smaller size that is not an even divisor, it is scaled up.
5.   If   there is no size available at all, the font doesn't exist on the disk, and
BASIC uses the Geneva font.
Either of the first two of these steps produces fairly good results, since the
computer can simply reduce or enlarge each dot of the font if the size   is   an   ·
even multiple of an existing size. However, as the improvisation process is
forced to use the techniques further down the list, the results become increas-
ingly poor. When the fontsize cannot be rescaled by an even multiple or divi-
sor, a complex algorithm must be used, which leads to characters that are
uneven and unattractive.   It   is therefore. best to choose sizes that are even mul-
tiples or divisors of available font images.
Sample   Programs
The following program uses a large point size of the New York font:
I   FONT-Sample Program #1
SET   FONT   2   I   New York

Languages: English

[Original PDF page 205](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=205)

### PDF page 206

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-768377ce121d6de5ad0e4b2c75da99303c15039bb52565555af004554c80d63b)

Transcribed text:

o   FONTSIZE   o
SET   FONTSIZE   72
GPRINT   AT 7,100;   "Hello"
GPRINT   ''There"
! 72   =   2*36
The fontsize 72 is chosen so that it is an even multiple of 36, the largest size
available for the New York font. The output is shown in Figure 1. Figure 2 is
the same, with FONTSIZE set to 144.
The second sample program is a more elaborate test of all the point sizes
available for every font:
!   FONTSIZE-Sample   Program #2
FOR   F=O   TO   12
GPRINT   AT 7,16; "Font Number:   ";F;
SET   PENPOS   7,23
SET   FONT F
RESTORE
§0§   FONTSl2E-Sample   Program   #1   ===
•
Hello
There
Figure 1:   FONTSIZE-Output   of sample program #1, in 72-point New
York font.

Reading notes: Source contains OCR-like artifacts (e.g., 'FONTSl2E', '§0§') that may be damaged characters. Reading order of program listing and Figure 1 caption is interleaved and uncertain.

Languages: English

[Original PDF page 206](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=206)

### PDF page 207

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-9b7d273b31471410f132ad6d1b8908903bdb6688524847063b5d61060287e1f1)

Transcribed text:

[)()
READS
IF   S=O   THEN   EXIT
SET   FONTSIZE   S
GPRINT
GPRINT   S;"   - Point'';
LOOP
GTEXTNORMAL
o   FONTSIZE   o
GPRINT   AT 7,237;"Press mouse button to continue."
BTNWAIT
CLEARWINDOW
NEXT F
DATA 9,   10,   12,   14,   18,20,24,36,0
Each time through the loop, the program will print a message   in each   of the
eight possible fontsizes. Some fonts have images available for most of these
Figure 2:   FONTSIZE-Output   of   sample   program #1, modified to
print in 144-point New York font.

Reading notes: Source text is a fragment of BASIC-style program code and printed program output description with damaged or garbled characters in places. Reading order of the fragment is uncertain.

Languages: English

[Original PDF page 207](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=207)

### PDF page 208

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-b9acd059c4004abc6d8f9d16ef70f534b269251a33c83a31d820f62dfa7f4aba)

Transcribed text:

o   FONTSIZE   o
[]§   FONTS   I   ZE-Semple   Progrem   #2   i§
Font Number: 2   ?
9-Poi:tl.'t
10-Poin1
12-Point
14-Point
18-Point
20-Point
24-Point
36-Point
Press mouse button to   contl   nue.
Figure 3: FONTSIZE-New York font looks good in all these point
sizes, because there are images for   all   of them on the disk.
sizes; New York, shown in Figure 3,   has   them all. Other fonts, however, look
fairly bad in some of these fontsizes, because they are rescalings of one small
fontsize. Figure 4 shows Chicago (the system font), which has an image only
for 12-point. The rescaling looks respectable for even multiples, such as 24,
but quite bad for uneven ratios, such as   10-   and 14-point. Geneva, the appli-
cation font, has the full set of fontsize images, except for 36-point, which   is   an
even multiple of 18-point.
Notes
-FONTSIZE   affects only text printed with   GPRINT.   The fontsize of
PRINT   output is controlled by the selections on the Fonts menu at the top of
the screen. However, every   PRINT   or   INPUT   statement resets the fontsize to

Reading notes: Text is truncated at the end of the excerpt. OCR-like fragments such as 'Semple Progrem' and 'contl nue' may contain reading errors.

Printed product names: New York · Chicago · Geneva

Languages: English

[Original PDF page 208](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=208)

### PDF page 209

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/3#scan-fb92f254ad06173d6c1ede7fa5744f41d721406abe9608fb8cd4a5034189f244)

Transcribed text:

o   FONTSIZE   o
~0~   FONTS   I   2E   -Sample   Program   #2   ~
Font Number: o   ?
0-Puini
10-Point
12-Point
14-Point
18-Point
20-Point
24-Point
36-Point
Press mouse but ton to cont   1 nue.
Figure   4:   FONTSIZE-Chicago   font has only a 12-point image, so the
other sizes are not very attractive.
12 (or to whatever size has been chosen from the Fonts menu).   So,   following a
PRINT or   INPUT   statement, you should always restore the fontsize you want
for GPRINT.
-Fonts are kept on the disk as special   resources   inside the System file.
These resources, while they cannot be seen, are files that can be used by any
application. To make space on the disk, you can remove unneeded fonts and
fontsizes, using the Font Mover application program, which   is   provided on
the Macintosh system disk that came with the machine.
For more information on fonts, see the entries for   FONT   and GPRINT.

Reading notes: Source appears to be a technical manual excerpt about Macintosh fonts, with an embedded sample program font list; reading order of the figure caption relative to body text is uncertain.

Languages: English

[Original PDF page 209](https://www.vintageapple.net/files/c56908f2cc9ab4ff9df974861a6b70578dc6bfa15d99d72ffa92f9a831caefbf/The_Macintosh_Basic_Handbook_1984.pdf#page=209)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-the-macintosh-basic-handbook-1984-05f2f5/2.md)
