home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 517a.lha / VFont_v2.0 / docs / OutputQuality < prev    next >
Text File  |  1991-06-09  |  4KB  |  93 lines

  1.                         Output Quality
  2.  
  3.  
  4.  
  5. Legality
  6. --------
  7. Copyright 1991 by Michael Jansson. All Rights Reserved.
  8.  
  9. This file is a part of the vfont distribution.  It may only be
  10. distributed in companion with the other parts of the vfont
  11. distribution.  It may be freely distributed for non-profitable
  12. purposes only.
  13.  
  14.  
  15. Introduction
  16. ------------
  17. This font machinery is so far, at some extent, fulfilling two
  18. of the goals I set up when I started this project; speed and
  19. power.  The most important goal is, however, good looking
  20. rendered characters.
  21.  
  22. This file contains some notes about quality, some hints of what
  23. kind of quality you can expect and how you can achieve it.
  24.  
  25.  
  26. Creating small fonts
  27. --------------------
  28. Writing a font machinery for a computer screen is much hard
  29. than writing such a beast for a printer due to the difference
  30. in resolution.  A normal sized character on a page is usually
  31. 10 points high, which is roughly equal to 30 pixel on a decent
  32. printer or laser writer.  Re-scaling a font that was designed
  33. at 1000x1000 to the size 30x30 will lead to a character that
  34. look a bit "rough".  Re-scaling a font that was designed at
  35. 1000x1000 to the size 8x8 will lead to a ridiculous result! The
  36. poor result has nothing to do with round-off errors in the
  37. computation, but on the fact that a mathematically correct scaled
  38. font is NOT what will look best.
  39.  
  40. An example; Assume that the font machinery is about to re-size
  41. a character "O".  Assume that the character is defined by a
  42. number of coordinates, which are given in a floating point
  43. format with sufficiently high precision.  Assume that all
  44. calculation is done in this floating-point format, and then
  45. finally rounded to the nearest point on a raster.  It is now
  46. easy to see that there are sizes where this method will
  47. give a character that has a left side that is wider/thinner
  48. then the right side, due to the discreet raster.
  49.  
  50.  
  51. Hinting
  52. -------
  53. So what was the problem with the above method?  Absolutely
  54. nothing!  The font machinery can only produce as good result as
  55. it is mathematically possible WITH THE GIVEN DATA.  The key
  56. thing here is that quality can be improved if there are
  57. information that the font machinery can use to preserve
  58. symmetrical aspects of characters.  It basically boils down to
  59. using some extra data to "cheat" when doing the transformation
  60. to the raster, such as saying "every point that is near enough
  61. to the baseline should probably be on the baseline".  This is
  62. known as HINTING, and has been used with amazing results on
  63. many font system.
  64.  
  65. The vFont machinery are only supporting hinting in a very
  66. limited way. What is the effect of this then? Well, don't
  67. expect any mind blowing results of heavily scaled fonts. You can
  68. still achieve very good result if you follow the following rule;
  69. use a font class that was designed for a size that is close to
  70. the desired font size.
  71.  
  72.  
  73. Creating good looking small fonts
  74. ---------------------------------
  75. Opening a bitmap font with the xdf_diskfont library and using
  76. the font at the original size will give you EXACTLY the same
  77. quality as if you would have used that font with the ordinary
  78. graphics functions.
  79.  
  80.  
  81. Creating good looking large fonts
  82. ---------------------------------
  83. Opening a vectorized font (FontoGrapher, vfont etc.) at fairly
  84. large size (say 32 pixel high, or higher) will also give you
  85. quite good results.
  86.  
  87.  
  88. Creating no-good looking fonts
  89. ------------------------------
  90. Attempting to look at a vectorized font as a small font, or
  91. looking at a bitmap font as a large font will result in a poor
  92. result.
  93.