home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4751 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.9 KB

  1. Path: sparky!uunet!lax.pe-nelson.com!lax!twbrown
  2. From: twbrown@PE-Nelson.COM (Tom W. Brown)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Printing. How to make 11 pt come out...
  5. Message-ID: <732@lax.lax.pe-nelson.com>
  6. Date: 8 Jan 93 18:46:10 GMT
  7. References: <1993Jan8.144922.3697@cis.ohio-state.edu>
  8. Sender: news@lax.pe-nelson.com
  9. Organization: PE-Nelson
  10. Lines: 29
  11.  
  12. In article <1993Jan8.144922.3697@cis.ohio-state.edu>, guzman@python.cis.ohio-state.edu (jonatan guzman) writes:
  13. |> ...looking like 11 pt regardless of the device onto which you are rendering the
  14. |> text?? I have a program that uses TT fonts for output (due to their scalabi-
  15. |> lity), but I am having to *manually* adjust the font size -when I CreateFont
  16. |> for the DC- depending on the output device (screen, printer).
  17. |> 
  18. |> I am obviously missing something here. What??
  19.  
  20. Try using the MM_TWIPS mapping mode for your output.  This sets up the DC
  21. so that a logical unit is equal to a twentieth of a point.  You then always
  22. use a font size of 220 (11 * 20) to get an 11 point font regardless of the
  23. device.
  24.  
  25. The default mapping mode is MM_TEXT where a logical unit is the same as
  26. a device unit (pixel) and, as you've noticed, varies from device to device in
  27. terms of physical size.
  28.  
  29. Since our application does more graphics then text output we pretty much
  30. stick with MM_ANISOTROPIC mapping and have our own conversion routines to
  31. convert printer points into logical units.  This is probably much the same
  32. as you are doing with your manually adjusted font sizes.  There's nothing
  33. wrong with doing it this way IMO.
  34.  
  35.  
  36. ----------------------------------------------------------------------------
  37. Tom Brown               |  "She turned me into a newt...
  38. PE Nelson Systems       |                                  ... I got better"
  39. twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
  40. ----------------------------------------------------------------------------
  41.