home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / print / fntprn.zip / FNTPRN.DOC < prev    next >
Text File  |  1993-03-16  |  18KB  |  315 lines

  1. FNTPRN.EXE (VERSION 1.0)               Copyright (c) 1993 John Deurbrouck
  2. -------------------------------------------------------------------------
  3.                 First Published in PC Magazine April 13, 1993 (Utilities)
  4. -------------------------------------------------------------------------
  5.  
  6. FNTPRN:
  7.                 FNTPRN lets you easily view multiple fonts and then
  8. generate your own font catalog for handy reference.
  9.  
  10.      Finding the font you want can be frustrating. Remembering the
  11. difference between Times New Roman and Arial may be easy, but what does
  12. Bembo look like? Does Gatineau have an attractive, true italic?  And
  13. which font is the one that looks like the type that appears on an Old
  14. West Wanted poster?
  15.  
  16.       Font selection dialog boxes--for example, the one that pops up
  17. when you select CharacterFonts in Windows Write--show you fonts, but only
  18. one at a time.  That gives you some nice confirmation of what you already
  19. know, but it's too slow and cumbersome if you need to search for or browse
  20. among more than a few fonts. FNTPRN gives you a way to view multiple fonts.
  21.  
  22.       To compile the source code, you'll need Borland's C++ 3.1 or
  23. Microsoft's C/C++ 7.0.  FNTPRN requires Version 3.1 of Windows because it
  24. employs programming features found only in this release.  The utility works
  25. with all of Windows' native fonts as well as any Microsoft TrueType and
  26. Adobe ATM fonts.
  27.  
  28.  ABOUT FACES
  29.  
  30.       A typeface (in Windows--typographers employ a stricter definition)
  31. is the name given to the design of a set of characters.  Individual
  32. variations of a typeface--known as fonts--are described by three parameters:
  33. point size, weight, and degree of slant.  The first, point size, measured
  34. in a unit called the point (1/72 of an inch), gives the vertical distance
  35. of an imaginary rectangle that surrounds each character of a font.  Be
  36. careful to distinguish between this and height, as it is used to describe
  37. the distance from the bottom of a font's descenders (the tail in a lowercase
  38. y, for instance) to the top of its ascenders (the uppermost point on a
  39. lowercase f, for example).  Height can--at a maximum--match the point
  40. size but rarely does, since a character seldom occupies the entire
  41. vertical dimension of its invisible box.
  42.  
  43.      The other two factors that separate fonts from one another are
  44. weight (bold, for instance) and degree of slant (italic, none, or
  45. oblique).  (The combination of weight and slant is known as the font's
  46. style--bold-italic is one example, bold by itself is another.)  Thus
  47. Arial (the TrueType Helvetica clone) is a single typeface and the
  48. following describes four of its fonts:  8-point Arial, 10-point Arial,
  49. 8-point Arial italic, and 8-point Arial bold.
  50.  
  51.    Windows assigns typefaces--based on their general appearance--to one
  52. of five groups called families.  Typefaces suggestive of cursive writing
  53. fall into the Script family, while those with ornate designs are
  54. classified as Decorative.  Of the remainder, most with constant-thickness
  55. strokes (the lines composing each character) are considered Modern
  56. (Courier, for one), while those with variable strokes land in the Roman
  57. family if they contain serifs (short, decorative strokes such as those
  58. hanging off the top of this T) or the Swiss category if they are sans
  59. serif (such as Arial or Helvetica). Fixed-pitch or monospaced fonts use
  60. the same amount of space for every character, while variable-pitch or
  61. proportional fonts use more space for larger characters. Monospaced fonts
  62. line up nicely into columns, while proportional fonts are more compact
  63. and easier to read. Finally, Windows actually contains a sixth font
  64. family known as Dontcare (labeled as Other in FNTPRN's Option window),
  65. which lets a program select a font without regard to the family.
  66.  
  67.      There are several technologies used to create fonts in Windows, but
  68. all fall into one of two general categories: bitmapped and vector.
  69. A bitmapped font is essentially a dot-by-dot description of every
  70. character. They're fast, but they don't scale (change size) well--printing
  71. an 8-point bitmapped font at 24 points yields a chunky, unattractive
  72. result. Vector fonts include stroke fonts, ATM, and TrueType. Instead of
  73. being a collection of dots, vector fonts are descriptions of each
  74. character: a line here, a curve there. Thus vector fonts scale well and
  75. look good at any size. Stroke  fonts are an older technology, included
  76. mainly for printing on plotters. ATM (Adobe Type Manager) fonts are
  77. designed to work at any point size on both the screen and any Windows
  78. printer. ATM fonts can be particularly fast with PostScript printers.
  79. TrueType fonts were introduced to Windows in Version 3.1 and offer
  80. scalability like ATM fonts.
  81.  
  82. INSTALLING  AND  DELETING  FNTPRN
  83.  
  84.      The utility demands no special effort to install.  To place its icon
  85. in the currently selected program group, use the Program Manager
  86. command File|New, choose Program Item from the dialog box, and  after
  87. clicking OK, fill in the blanks in the Program Item Properties dialog
  88. that comes up, then choose OK once more.
  89.  
  90.      Removing FNTPRN takes as little effort.  Dispose of its icon by
  91. selecting it and choosing File|Delete from the Program Manager menu.
  92. Repeat the procedure for all occurrences of the icon, then erase
  93. FNTPRN.EXE.  The program makes no modifications to WIN.INI, and the
  94. only files it creates are .WRI files containing font examples.
  95.  
  96. USING  FNTPRN
  97.  
  98.      If you're in a hurry, you can use FNTPRN without installing it
  99. simply by selecting File|Run from the Program Manager menu and entering
  100. the utility's full pathname in the resulting dialog box, which brings up
  101. the FNTPRN window.  Set the options you want, make sure that the Launch
  102. Write check box in the lower-left corner is checked (if it isn't, click
  103. on it), then click the OK button.  You'll be presented with a standard
  104. Save As dialog box (but with a title bar that reads ``Choose Output
  105. Filename'').  After you pick an output filename, select OK again.
  106. FNTPRN will generate and save a sample file based on the options you
  107. selected, then display it in Windows Write.  (If you don't make any
  108. changes and then click on OK, a file named FNTPRN.WRI will be saved to
  109. the directory that contains FNTPRN.)  FNTPRN is still running, so you
  110. can switch to it while Write is still running or after you're done,
  111. where you can design another report or quit the utility.  That's the
  112. quick start. Now for a few details.
  113.  
  114.      Running FNTPRN takes you right to the heart of the program--its
  115. option window. Most items on this screen fall into one of three option
  116. groups--Fonts, Sample Text, and Description Formatting.
  117.  
  118.      The Fonts section allows you to configure the report file FNTPRN
  119. produces. Sort Order (covered in greater detail shortly) is a drop-down
  120. list used to determine the sequence of samples in the output, while the
  121. Pitch radio buttons let you include proportional fonts, monospace, or
  122. both, and the Device selection determines whether the file will contain
  123. printer or screen fonts.  The output will incorporate whatever selections
  124. you make under the Font Families and Styles categories, but you must
  125. select at least one of each.  If you check the check box labeled Allow
  126. Bold/Italic Synthesis, and  if a particular typeface lacks any or all of
  127. the styles (italic, bold, or bold-italic), FNTPRN will request that
  128. Windows artificially create those you've included.  (Some limits, which
  129. I'll describe a little later, exist.)  Check the TrueType Only checkbox
  130. to restrict the report's contents to just those fonts. You may want to
  131. do this to exclude clunky, nonscalable fonts (such as  LinePrinter) from
  132. your report. Don't check the box, though, if you use ATM fonts.  Let your
  133. font collection be your guide!
  134.  
  135.      If you make no changes in the Font section's options, they default
  136. to alphabetical sort order, both spacing types, printer fonts, all styles
  137. and families, bold/italic synthesis, and any make of font (rather than
  138. TrueType alone).
  139.  
  140.    As implied above, Sort Order presents you with several choices.  The
  141. first--Alphabetical--sorts by face name, so Arial would come before
  142. Bodoni Bold.  To arrange the report by height (as defined near the
  143. beginning of the article) choose that item from the list.  Width refers
  144. to the average width of the characters in the font, while Proportion
  145. sorts by the result of height divided by width, so tall, skinny fonts
  146. would come before short, squat ones.  Weight orders the output by the
  147. boldness designation the vendor supplies, thus lighter fonts will precede
  148. darker ones.  Font Family organizes the report alphabetically by the
  149. vendor-provided font family information and can help you zero in on a
  150. desired look quickly.
  151.  
  152.      Earlier I indicated that sometimes--but not always--Windows can
  153. artificially create styles not provided with a particular font.  I have
  154. an Arial MT, for example, that comes only in regular, but Windows can
  155. easily widen the strokes to fake a bold look, slant them so they seem
  156. italicized, or combine both processes to give the characters a bold
  157. -italic appearance.  Choosing to include these styles and selecting
  158. Allow Bold/Italic Synthesis will make them appear in FNTPRN's report.
  159. On the other hand, the Bodoni I use just offers a bold.  Windows can
  160. make a bold-italic, but it can't thin out the strokes to imitate a
  161. regular or regular-italic--so allowing synthesis will do no good for
  162. those two styles.
  163.  
  164.  SAMPLE TEXT
  165.  
  166.      The Text drop-down list in this section of FNTPRN's screen lets
  167. you display each of your chosen fonts using one of four sample texts.
  168. The first selection prints exactly the characters it displays, chosen
  169. for their ability to show off most features of the font without taking
  170. a lot of room.  Use Text Paragraph to get a better idea of how a large
  171. block of text will look and Alphabet to see all the upper- and
  172. lowercase characters, 0 through 9, and the symbols contained on
  173. IBM-compatible keyboards. The Sample Textlist item simply prints the
  174. phrase ``Sample Text,'' but for a specific purpose.  FNTPRN supplies
  175. no direct way that you can enter your own example text. To use your own
  176. choice of text, use Write's search-and-replace to substitute it for
  177. Sample Text.
  178.  
  179.      Justification of text sets the spacing between words and controls
  180. where each line is placed relative to the left and right margins.
  181. FNTPRN presents the four possibilities via a drop-down list.  Center
  182. places the middle of the text line halfway between the margins, dividing
  183. any remaining space (which can vary from line to line) equally and
  184. putting it at the ends.  Justified adjusts the distance between each word
  185. so that unindented lines--except, possibly, the last in a paragraph--
  186. stretch to the margins.  This column is an example.  Left forces every
  187. line against the left margin, pushing any extra space--which, again, can
  188. vary--to the other end.  The uneven line endings give that side of the
  189. page a ragged appearance, so this is also known as ragged right. As you
  190. might guess, Right (or ragged left), does just the reverse, pushing
  191. lines against the right margin.
  192.  
  193.      To select the point size for your chosen sample text, enter any
  194. value from 6 to 72 in the Size box.  10 is a good choice for viewing
  195. fonts that you plan to use in the body of your writing. However, if
  196. you want to get a good look at candidates for headlines and decorative
  197. text, you should try a setting of 36.  A little experimentation will
  198. quickly give you a feel for what to pick.
  199.  
  200.      The default Sample Text options are the sample list's first item,
  201. left justified at 18 points.
  202.  
  203. DESCRIPTION FORMATTING
  204.  
  205.      FNTPRN labels each sample on its output using the font displayed
  206. under Description Formatting.  To make modifications, click the Change
  207. button to bring up a standard font-selection dialog box.  Make your
  208. selections from the scroll lists presented or type your choices in and
  209. click OK when finished.  Your changes will be reflected in the Description
  210. Formatting area.  The default is 8-point Arial Regular.
  211.  
  212.      The Launch Write check box, at the bottom left of the window, lies
  213. outside any option group.  If checked (as it is unless changed), FNTPRN
  214. first follows its normal procedure when you click OK.  It asks for a
  215. filename and, assuming you select OK again, creates and immediately saves
  216. its report to the .WRI file you specify.  After, however, it also
  217. launches Microsoft Write, loading the newly generated report into it.
  218. If you would rather view the file later, remove the x from this option's
  219. check box.  Now selecting OK from the program's window (and again from
  220. the Choose Output Filename dialog box that appears) saves the .WRI file
  221. but doesn't start Write.
  222.  
  223.      The Defaults button restores each control to the state it was
  224. in when you first started the utility, and, as you have seen, clicking
  225. OK produces the output file and loads it into Write. Press Cancel in the
  226. Choose Output Filename dialog to return to FNTPRN's main window without
  227. generating the font document.
  228.  
  229. FNTPRN's REPORT
  230.  
  231.      FNTPRN produces easily understood output. An informational header
  232. at the top serves as a reminder of the choices you made to generate the
  233. report.  The ``Number of Font Families Found'' appears first, then a list
  234. of included font families (Roman, modern, sans serif, script, novelty,
  235. and unknown), followed by your selections for Device (screen or printer),
  236. ``Synthetic Bold/Ital allowed,'' Styles (any combination of regular,
  237. bold, italic, and bold-italic), ``Sort Order,'' and ``TrueType only''
  238. (if you made that restriction).
  239.  
  240.      The styles for each typeface appear as a group, so for example if
  241. you selected Arial, the sample paragraphs would appear in the order
  242. regular, bold, italic, and bold-italic. A line of description follows
  243. each and displays the font's name as provided by the manufacturer, the
  244. style, its spacing type (monospaced or proportional), the family, and
  245. if the font is TrueType or not--with all items separated by commas.
  246. Any synthesized styles will be described that way--Synthesized Bold,
  247. for example.
  248.  
  249.      You may notice some font names repeated.  Courier shows up several
  250. times on my own system.  This is because Windows actually allows the same
  251. name for multiple fonts.  If the fonts are in different families, FNTPRN,
  252. Windows, and Write will distinguish among them correctly, so don't worry
  253. about duplicates in FNTPRN's report.  If duplicates are in the same
  254. family, you'll see only one--the one Windows chooses--both on-screen and
  255. on the printer. Windows will choose the best version for each purpose.
  256.  
  257.      Some fonts, such as System (which is fixed-width and comes with
  258. Windows), are meant exclusively for screen display and can't be printed
  259. exactly.  Others--LinePrinter on my laser printer, for instance--correctly
  260. reproduce on paper only.  Since Write can both display and print files,
  261. FNTPRN's use of it gives you at least one way to see any font as it
  262. truly looks.  Remember, though, when no font exists for a device,
  263. Windows substitutes something close--so you'll still see a representation,
  264. but not necessarily an accurate one.
  265.  
  266.      If your default printer is a PostScript device, certain fonts may
  267. not display or print correctly--whether you are using FNTPRN or some
  268. other application.  For example, rather than Wingdings, you may get the
  269. native Symbols font.  To correct the problem, open Control panel and
  270. select Printers|Setup|Options|Advanced.  If ``Use Printer Fonts for all
  271. TrueType Fonts'' is checked, you're gaining speed but losing most of your
  272. TrueType fonts (Wingdings, for example).  Uncheck this box and you'll be
  273. able to access your TrueType fonts again.
  274.  
  275. EXPLORING YOUR FONTS
  276.  
  277.      Printed font catalogs are handy. If you use a lot of decorative
  278. faces, why not create a set of all your fonts at about 36-point size?
  279. Leafing through it from time to time will help you remember what you
  280. have.  FNTPRN's Write files are compact, so leaving them on-disk is
  281. fine.  Since they're ordinary .WRI files, you can edit them, use
  282. search-and-replace, and perform any other function possible on a typical
  283. Write document.  This also ensures that they import well into most
  284. Windows word processors.
  285.  
  286.      Suppose you produce a newsletter and want to see how a paragraph
  287. of text might look in all of your Roman fonts.  Generate a font list with
  288. FNTPRN, then import the file into your word processor and set your page
  289. format to three columns. A few cautions are in order.  First, working
  290. in a word processor with FNTPRN's .WRI files can be rather slow.  Nearly
  291. every line uses a new font, so the computing overhead can be high.  Turn
  292. on your draft mode to save time until you want to look at the actual
  293. fonts.
  294.  
  295.      Though FNTPRN uses vendor-supplied information to produce its
  296. reports, not all font publishers provide accurate data.  One simply
  297. reports every family as Unknown--even Times Roman and Helvetica clones,
  298. lumping them together with map symbols and script fonts.  FNTPRN would
  299. be a mammoth program if it tried to distinguish these characteristics
  300. on its own, so its sorting ability is at the mercy of the font makers.
  301.  
  302.      I also ran across a limitation in Write. Though its file format
  303. supports up to 512 fonts per document, the program itself fails to
  304. handle more than about 60 correctly. As soon as it gets past its limit,
  305. Write starts using fonts  from the beginning of its list over again, so
  306. your last font may be labeled Times New Roman but show up as Arial.
  307. This won't hurt your system, but you won't get an accurate rendering of
  308. your fonts.  If this is a concern for you, you'll need to use another
  309. tool to look at FNTPRN's output (WinWord works fine).
  310.  
  311.        Careful use of fonts can make the pages you produce more
  312. effective. FNTPRN can help you use your fonts better than ever before.
  313. ----------------------------------------------------------------------
  314. JOHN DEURBROUCK IS A C AND ASSEMBLY LANGUAGE PROGRAMMER.
  315.