home *** CD-ROM | disk | FTP | other *** search
/ TopWare Tools / TOOLS.iso / tools / top1089 / ewtech.lzh / EWTECH.009 < prev   
Encoding:
Text File  |  1993-08-13  |  1.5 KB  |  33 lines

  1. E! for Windows - Technical Note #009
  2. ***********************************************************************
  3. Available font sizes in Screen Font and Printer Font Setup dialog boxes
  4. ***********************************************************************
  5.  
  6. Some users complained that, for some fonts, there's only one available
  7. size displayed in these dialog boxes while the corresponding Windows
  8. dialog box in COMMDLG.DLL displays multiple sizes.
  9.  
  10. When enumerating non-scalable fonts, Windows returns all possible sizes
  11. for the given font. These values are displayed in the dialog box.
  12.  
  13. The problem is different when enumerating scalable fonts. For those fonts,
  14. all sizes are theoretically possible (practically about 1000 possible
  15. sizes are available). Constructing such a list of values would waste time
  16. and memory.
  17.  
  18. The COMMDLG dialog box proposes some frequently used sizes. These are not
  19. values returned by the font itself. They are only sample values
  20. hard-coded in COMMDLG.DLL.
  21.  
  22. EW works another way. It proposes the only (default) size returned by the
  23. system for that scalable font and allows entering any value in the
  24. relevant edit field. This does not mean that the user is limited in his
  25. choice when selecting a size. Any size can be entered for a scalable font.
  26. However, depending on the font, the size entered by the user may be
  27. rounded up to better match the font characteristics. This method makes
  28. font enumeration faster especially on systems where numerous scalable
  29. fonts are installed.
  30.  
  31. Patrick Philippot
  32. 08/12/93
  33.