home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3794 < prev    next >
Encoding:
Text File  |  1992-07-26  |  1.7 KB  |  36 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!destroyer!gatech!taco!garfield.catt.ncsu.edu!harris
  3. From: harris@garfield.catt.ncsu.edu (Michael Harris)
  4. Subject: Re: OUTLINE FONT METRICS
  5. Message-ID: <harris.712181819@garfield.catt.ncsu.edu>
  6. Sender: news@ncsu.edu (USENET News System)
  7. Organization: North Carolina State University
  8. References: <ddesroch.711989648@mailseq> <t2km8fn.daveb@netcom.com>
  9. Date: Sun, 26 Jul 1992 20:16:59 GMT
  10. Lines: 24
  11.  
  12. daveb@netcom.com (Dave Briccetti) writes:
  13.  
  14. >ddesroch@oracle.uucp (David DesRoches) writes:
  15. >OK, so I've chosen this really cool OUTLINE font that I want to scale to say,
  16. >32 points.  I compute the necessary character cell dimensions, call
  17. >GpiSetCharBox() and GpiSetCharSet() to select my new logical font.
  18. >QUESTION: How do I get the metrics for this font AT THE SELECTED POINT SIZE?
  19. >Calling GpiQueryFontMetrics() at this point returns the same metrics structure
  20. >I got back from my initial font query, with metrics designed around a 12 point
  21. >font or so.
  22. >
  23. >My only current idea is to compute the ratio of logical.lMaxBaselineExt to
  24. >physical(base).lMaxBaselineExt and multiply the metrics by this ratio to
  25. >scale them (ascent, descent, maxwidth) to the point size I'm using.  This
  26. >seems bogus and prone to round-off error.
  27. >Am I missing something?
  28.  
  29. Alternatively, you could query *some* of the info via GpiQueryTextBox.
  30. ______________________________________________________________________________
  31.      Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
  32.  System Administrator, Computer & Technologies Theme Program, NC State Univ.
  33. (My opinions are my own and do not represent those of NCSU or IBM Corporation)
  34.