home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3757 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.4 KB

  1. Path: sparky!uunet!oracle!unrepliable!bounce
  2. Newsgroups: comp.os.os2.programmer
  3. From: ddesroch@oracle.uucp (David DesRoches)
  4. Subject: OUTLINE FONT METRICS
  5. Message-ID: <ddesroch.711989648@mailseq>
  6. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  7. Nntp-Posting-Host: mailseq.us.oracle.com
  8. Organization: Oracle Corp., Redwood Shores CA
  9. Date: Fri, 24 Jul 1992 14:54:08 GMT
  10. X-Disclaimer: This message was written by an unauthenticated user
  11.               at Oracle Corporation.  The opinions expressed are those
  12.               of the user and not necessarily those of Oracle.
  13. Lines: 21
  14.  
  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.  
  19. QUESTION: How do I get the metrics for this font AT THE SELECTED POINT SIZE?
  20. Calling GpiQueryFontMetrics() at this point returns the same metrics structure
  21. I got back from my initial font query, with metrics designed around a 12 point
  22. font or so.
  23.  
  24. My only current idea is to compute the ratio of logical.lMaxBaselineExt to
  25. physical(base).lMaxBaselineExt and multiply the metrics by this ratio to
  26. scale them (ascent, descent, maxwidth) to the point size I'm using.  This
  27. seems bogus and prone to round-off error.
  28.  
  29. Am I missing something?
  30.  
  31. Thanks.
  32.  
  33. Dave DesRoches
  34. ddesroch@oracle.com
  35.  
  36.