3 lines
28 KiB
HTML
3 lines
28 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>16-FONTS</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part18.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part20.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark18">16. FONTS</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_104.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 15pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">This chapter explains font s and font descriptors, what they are and how to use them, so that you can use functions requiring font descriptors</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">You have already been exposed to many font s in Medley. For example, when you use the structure editor, DEdit (see the Using the List Structure Editor section of Chapter 7), you noticed that the comments were printed in a smaller font than the code, and</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">that CLlSP words (see the CLISP section of Chapter 9) were printed in a darker font</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">than the other words in the function. These are only some of the font s that are available in Medley.</p><p style="padding-top: 7pt;padding-left: 106pt;text-indent: 0pt;text-align: left;">In addition to the font s that appear on your screen, Medley uses font s for printers that are different than the ones used for the screen. The font s used to print to the screen are called <span class="s3">DlSPLAYFONTS</span>. The font s used for prining are called <span class="s3">INTERPRESSFONTS </span>, or <span class="s3">PRESSFONTS</span>, depending on the type of printer.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">What Makes Up a Font </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Fonts are described by family, weight, slope, width, and size. This section discusses each of these, and describes how they affect the font you see on the screen.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">Family is one way that font s can differ. Here are some examples of how "family" affect s the look of a font:</p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 164%;text-align: justify;">CLASSIC <span class="p">This family makes the word "Able" look like this: Able </span>MODERN <span class="p">This family makes the word "Able" look like this: </span><span class="s6">Able </span>TITAN <span class="p">This family makes the word "Able" look like this: </span>Able</p><p style="padding-top: 1pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">Weight also determines the look of a font. Once again, "Able" will be used as an example, this time only with the Classic family. A font’s weight can be:</p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">BOLD <span class="p">And look like this: </span><span class="s10">Able</span></p><p class="s3" style="padding-top: 8pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">MEDIUM</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">or <span class="s3">REGULAR </span>And look like this: Able</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">The slope of a font is italic or regular. Using the Classic family font again, in a regular weight, the slope affect s the font like this:</p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">ITALIC <span class="p">Looks like this: </span><span class="s4">Able</span></p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">REGULAR <span class="p">Looks like this: Able</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">The width of a font is called its "expansion". It can be <span class="s3">COMPRESSED </span>, <span class="s3">REGULAR</span>, or</p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">EXPANDED<span class="p">.</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Together, the weight, slope, and expansion of a font specifies the font’s "face". Specifically, the face of a font is a three element list:</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(weight slope expansion)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">To make it easier to type, when a function requires a font face as an argument, it can be abbreviated with a three-character atom. The first specifies the weight, the second the</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">slope, and the third character the expansion. For example, some common font faces are abbreviated:</p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">MRR <span class="p">This is the usual face, </span>MEDIUM<span class="p">, </span>REGULAR<span class="p">, </span>REGULAR</p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">MIR <span class="p">Makes an italic font. It stands for: </span>MEDIUM <span class="p">, </span>ITALIC<span class="p">, </span>REGULAR</p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;line-height: 20pt;text-align: left;">BRR <span class="p">Makes a bold font. The abbreviation means: </span>BOLD<span class="p">, </span>REGULAR <span class="p">, </span>REGULAR BIR <span class="p">Means that the font should be both bold and italic. </span>BIR <span class="p">stands for </span>BOLD<span class="p">,</span></p><p class="s3" style="padding-top: 1pt;padding-left: 179pt;text-indent: 0pt;text-align: left;">ITALIC<span class="p">, </span>REGULAR</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The above examples are used so oflen, that there are also more mnemonic abbreviations for them. They can also be used to specify a font face for a function that requires a face as an argument. They are:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 179pt;text-indent: -72pt;line-height: 107%;text-align: left;">STANDARD <span class="p">This is the usual face: </span>MEDIUM<span class="p">, </span>REGULAR<span class="p">, </span>REGULAR<span class="p">; it was abbreviated above, </span>MRR</p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">ITALIC <span class="p">This was abbreviated above as </span>MIR<span class="p">, and specifies an italic font</span></p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">BOLD <span class="p">Makes a bold font; it was abbreviated above, </span>BRR</p><p class="s3" style="padding-top: 7pt;padding-left: 179pt;text-indent: -72pt;line-height: 107%;text-align: left;">BOLDITALIC <span class="p">Makes a font both bold and italic: </span>BOLD<span class="p">, </span>ITALIC <span class="p">, </span>REGULAR<span class="p">; it was abbreviated above, </span>BIR</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">A font also has a size. It is a positive integer that specifies the height of the font in</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">printers points. A point is, on an 1108 screen, about 1/72 of an inch. On the screen of an 1186, a point is 1/80 of an inch. The size of the font used in this chapter is 10. For</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 13pt;text-align: left;">comparison, here is an example of a <span class="s3">TITAN</span>, <span class="s3">MRR</span>, size 12 font: <span class="s12">Able</span>.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><h2 style="padding-top: 10pt;padding-left: 35pt;text-indent: 0pt;text-align: left;">Fontdescriptors and FONTCREATE </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">For Medley to use a font, it must have a font descriptor. A font descriptor is a data type in Interlisp-D that that holds all the information needed in order to use a particular font. When you print out a font descriptor, it looks like this:</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">{FONTDESCRIPTOR}#74,45540</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Fontdescriptors are created by the function <span class="s3">FONTCREATE </span>. For example,</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(FONTCREATE ’HELVETICA 12 ’BOLD)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">creates a font descriptor that, when used by other functions, prints in <span class="s3">HELVETICA BOLD size 12</span>. Interlisp-D functions that work with font s expect a font descriptor produced</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 164%;text-align: left;">with the <span class="s3">FONTCREATE </span>function. The syntax of <span class="s3">FONTCREATE </span>is:</p><p class="s3" style="padding-top: 1pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(FONTCREATE <span class="s4">family size face</span><span class="p">)</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Remember from the previous section, face is either a three element list (weight slope expansion), a three character atom abbreviation, e.g. <span class="s3">MRR</span>, or one of the mnemonic</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">abbreviations, e.g. <span class="s3">STANDARD </span>.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">If <span class="s3">FONTCREATE </span>is asked to create a font descriptor that a J ready exists, the existing font descriptor is simply returned.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><h2 style="padding-top: 4pt;padding-left: 35pt;text-indent: 0pt;text-align: left;">Display Fonts </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Display font s require files that contain the bitmaps used to print each character on the screen. All of these files have the extension <span class="s3">.DlSPLAYFONT </span>. The file name itself</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">describes the font style and size that uses its bitmaps. For example:</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">MODERN12.DISPLAYFONT</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">contains bitmaps for the font family <span class="s3">MODERN </span>in size 12 points. Wherever you put your</p><p class="s3" style="padding-left: 106pt;text-indent: 0pt;line-height: 107%;text-align: left;">.DISPLAYFONT <span class="p">files, you should make this one of the values of the variable </span>DISPLAYFONTDIRECTORIES<span class="p">. Its value is a list of directories to search for the bitmap files for display font s. Usually, it contains the "</span>FONT<span class="p">" directory where you copied the bitmap files, and the current connected directory. The current connected directory is</span></p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">specified by the atom <span class="s3">NIL</span>. When looking for a <span class="s3">.DISPLAYFONT </span>file, the system checks the <span class="s3">FONT </span>directory on the hard disk, then the current connected directory.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Figure 16-1 shows an example value of <span class="s3">DISPLAYFONTDIRECTORIES </span>:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 175pt;text-indent: 0pt;text-align: left;"><span><img width="367" height="314" alt="image" src="Image_105.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 170pt;text-indent: 0pt;text-align: left;">Figure 16-1. Value for the Atom <span class="s3">DISFLAYFONTDIRECTORIES</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">InterPress Fonts </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">InterPress is the format that is used by Xerox laser printers. These printers normally have a resolution that is much higher than that of the screen: 300 points per inch.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">To format files appropriately for output on such a printer, Interlisp must know the</p><p style="padding-left: 106pt;text-indent: 0pt;text-align: left;">actual size for each character that is to be printed. This is done through the use of width files that contain font width information for font s in InterPress format. For InterPress font s, you should make the location of these files one of the values of the variable <span class="s3">INTERPRESSFONTDIRECTORIES</span>. Its value is a list of directories to search for the font widths files for InterPress font s. Figure 16-2 is an example value of <span class="s3">INTERPRESSFONTDIRECTORIES</span>:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 173pt;text-indent: 0pt;text-align: left;"><span><img width="367" height="314" alt="image" src="Image_106.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 170pt;text-indent: 0pt;text-align: left;">Figure 16-2. Value for Atom <span class="s3">INTERPRESSFONTDIRECTORIES</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Functions for Using Fonts </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><h3 style="padding-top: 4pt;padding-left: 71pt;text-indent: 0pt;text-align: left;">FONTPR0P Looking at Font Properties</h3><p style="padding-top: 10pt;padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">It is possible to see the properties of a font descriptor. This s done with the function <span class="s3">FONTPROP</span>. For the following examples, the font descriptor used will be the one returned by the function <span class="s3">(DEFAULTFONT ’DISPLAY) </span>. In other words, the font descriptor</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">examined will be the default display font for the system.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">There are many properties of a font that might be useful for you. Some of these are:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">FAMILY <span class="p">To see the family of a font descriptor, type:</span></p><p class="s3" style="padding-top: 7pt;padding-left: 179pt;text-indent: 0pt;text-align: left;">(FONTPROP (DEFAULTFONT ’DISPLAY) ’FAMILY)</p><p class="s3" style="padding-top: 7pt;padding-bottom: 1pt;padding-left: 179pt;text-indent: -72pt;line-height: 107%;text-align: left;">SIZE <span class="p">As above, this is a positive integer that determines the height of the font in printer’s points. As an example, the </span>SIZE <span class="p">of the current default font is:</span></p><p style="padding-left: 188pt;text-indent: 0pt;text-align: left;"><span><img width="333" height="99" alt="image" src="Image_107.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 177pt;text-indent: 0pt;text-align: left;">Figure 16-3. Value of Font Property <span class="s3">SIZE </span>of Default Font</p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">ASCENT <span class="p">The value of this property is a positive integer, the maximum height of</span></p><p style="padding-left: 179pt;text-indent: 0pt;text-align: left;">any character in the specified font from the baseline (bottom). The top of</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 179pt;text-indent: 0pt;text-align: left;">the tallest character in the font, then, will be at <span class="s3">(BASELINE + ASCENT</span></p><p class="s3" style="padding-left: 179pt;text-indent: 0pt;text-align: left;">- l<span class="p">). For example, the </span>ASCENT <span class="p">of the default font is:</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 190pt;text-indent: 0pt;text-align: left;"><span><img width="333" height="99" alt="image" src="Image_108.gif"/></span></p><p style="padding-top: 8pt;padding-left: 178pt;text-indent: 0pt;text-align: left;">Figure 16-4. Value Font Property <span class="s3">ASCENT </span>of Default Font</p><p class="s3" style="padding-top: 7pt;padding-left: 179pt;text-indent: -72pt;line-height: 107%;text-align: justify;">DESCENT <span class="p">The </span>DESCENT <span class="p">is an integer that specifies the maximum number of points that a character in the font descends below the baseline (e.g.,</span></p><p style="padding-left: 179pt;text-indent: 0pt;line-height: 106%;text-align: justify;">letters such as "p" and "g" have tails that descend below the baseline.). The bottom of the lowest character in the font will be at <span class="s3">(BASELINE - DESCENT)</span>. To see the <span class="s3">DESCENT </span>of the default font, type:</p><p class="s3" style="padding-top: 6pt;padding-left: 107pt;text-indent: 72pt;line-height: 170%;text-align: left;">(FONTPROP (DEFAULTFONT ’DISPLAY) ’DESCENT) HEIGHT HEIGHT <span class="p">is equal to </span>(DESCENT - ASCENT)<span class="p">.</span></p><p style="padding-left: 179pt;text-indent: -72pt;line-height: 106%;text-align: left;"><span class="s3">FACE </span>The value of this property is a list of the form (<i>weight slope expansion</i>). These are the weight, slope, and expansion described above. You can see each one separately, also. Use the property that you are interested in, <span class="s3">WEIGHT</span>, <span class="s3">SLOPE</span>, or <span class="s3">EXPANSION</span>, instead of <span class="s3">FACE </span>as the second argument to <span class="s3">FONTPROP</span>.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">For other font properties, see Chapter 27 of the <i>IRM</i>.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">STRlNGWlDTH</h3><p style="padding-top: 10pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">It is often useful to see how much space is required to print an expression in a particular font. The function <span class="s3">STRINGWIDTH </span>does this. For example, type:</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(STRINGWIDTH "Hi there!" (FONTCREATE ’GACHA 10 ’STANDARD))</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The number returned is how many left to right pixels would be needed if the string</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">were printed in this font. (Note that this doesn’t just work for pixels on the screen, but for all kinds of streams. For more information about streams, see Chapter 15.) Compare the number returned from the example call with the number returned when you change <span class="s3">GACHA </span>to <span class="s3">TIMESROMAN</span>.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">DSPFONT - Changing the Font in One Window</h3><p style="padding-top: 10pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">The function <span class="s3">DSPFONT </span>changes the font in a single window. As an example of its use, first create a window to write in. Type:</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(SETQ MY.FONT.WINDOW (CREATEW))</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">in the Executive Window. Sweep out the window. To print something in the default font, type:</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(PRINT ’HELLO MY.FONT.WINDOW)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">in the Executive Window. Your window, <span class="s3">MY.FONT.WINDOW </span>, will look something like Figure 16-5:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 224pt;text-indent: 0pt;text-align: left;"><span><img width="230" height="172" alt="image" src="Image_109.gif"/></span></p><p style="padding-top: 7pt;padding-left: 145pt;text-indent: 0pt;text-align: left;">Figure 16-5. <span class="s3">HELLO</span>, Printed with the Default Font in <span class="s3">MY.FONT.WINDOW</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Now change the font in the window. Type:</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(DSPFONT (FONTCREATE ’HELVETICA 12 ’BOLD) MY.FONT.WINDOW)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">in the Executive Window. The arguments to <span class="s3">FONTCREATE </span>can be changed to create any desired font. Now retype the <span class="s3">PRINT </span>statement, and your window will look something</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">like Figure 16-6:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 193pt;text-indent: 0pt;text-align: left;"><span><img width="312" height="211" alt="image" src="Image_110.gif"/></span></p><p style="padding-top: 8pt;padding-left: 107pt;text-indent: 90pt;line-height: 164%;text-align: left;">Flgure 16-6. Font in <span class="s3">MY.FONT.WINDOW </span>Changed Notice the font has been changed.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">Personalizing Your Font Profile</h3><p style="padding-top: 10pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Medley keeps a list of default font specifications. This list is used to set the font in all windows where the font is not specifically set by the user (see the <span class="s3">DSPFONT </span>section</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">above). The value of the atom <span class="s3">FONTPROFILE </span>is this list (see Figure 16-7).</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">A <span class="s3">FONTPROFILE </span>is a list of font descriptions that certain system functions access when printing output. It contains specifications for big font s (used when pretty printing a</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">function to type the function name), small font s (used for printing comments in the editor), and various other font s.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 196pt;text-indent: 0pt;text-align: left;"><span><img width="308" height="443" alt="image" src="Image_111.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 205pt;text-indent: 0pt;text-align: left;">Figure 16-7. Value of the Atom <span class="s3">FONTPROFILE</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">The list is in the form of an association list. The font class names (e.g., <span class="s3">DEFAULTFONT </span>, or <span class="s3">BOLDFONT</span>) are the keywords of the association list. When a number follows the</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">keyword, it is the font number for that font class.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The lists following the font class name or number are the font specifications, in a form that the function <span class="s3">FONTCREATE </span>can use. The first font specification list affer a keyword</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">is the specification for printing to windows. The list<span class="s3">(GACHA 10) </span>in the figure above is an example of the default specification for the printing to windows. The last two font</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">specification lists are for Press and InterPress file printing, respectively. For more information, see Chapter 27 in the <i>IRM</i>.</p><p style="padding-top: 6pt;padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">Now, to change your default font settings, change the value of the variable <span class="s3">FONTPROFILE</span>. Medley has a list of profiles stored as the value of the atom <span class="s3">FONTDEFS </span>. Choose the profile to use, then install it as the default <span class="s3">FONTPROFILE </span>.</p><p style="padding-top: 7pt;padding-left: 106pt;text-indent: 0pt;line-height: 107%;text-align: left;">Evaluate the atom <span class="s3">FONTDEFS </span>and notice that each profile list begins with a keyword (see Figure 16-8). This keyword corresponds to the size of the font s included. <span class="s3">BIG</span>, <span class="s3">SMALL</span>, and <span class="s3">STANDARD </span>are some of the keywords for profiles on this list—<span class="s3">SMALL </span>and <span class="s3">STANDARD </span>appear in Figure 16-8.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 173pt;text-indent: 0pt;text-align: left;"><span><img width="367" height="202" alt="image" src="Image_112.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 197pt;text-indent: 0pt;text-align: left;">Figure 16-8. Part of Value of the Atom <span class="s3">FONTDEFS</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">To install a new profile from this list, follow the following example, but insert any keyword for <span class="s3">BIG</span>.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">To use the profile with the keyword <span class="s3">BIG </span>instead of the standard one, evaluate the following expression:</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(FONTSET ’BIG))</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Now the font s are permanently replaced. (That is, until another profile is installed.)</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part18.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part20.htm">Next ></a></p><p class="nav"> </p></body></html>
|