home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!oracle!unrepliable!bounce
- Newsgroups: comp.os.os2.programmer
- From: ddesroch@oracle.uucp (David DesRoches)
- Subject: OUTLINE FONT METRICS
- Message-ID: <ddesroch.711989648@mailseq>
- Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
- Nntp-Posting-Host: mailseq.us.oracle.com
- Organization: Oracle Corp., Redwood Shores CA
- Date: Fri, 24 Jul 1992 14:54:08 GMT
- X-Disclaimer: This message was written by an unauthenticated user
- at Oracle Corporation. The opinions expressed are those
- of the user and not necessarily those of Oracle.
- Lines: 21
-
- OK, so I've chosen this really cool OUTLINE font that I want to scale to say,
- 32 points. I compute the necessary character cell dimensions, call
- GpiSetCharBox() and GpiSetCharSet() to select my new logical font.
-
- QUESTION: How do I get the metrics for this font AT THE SELECTED POINT SIZE?
- Calling GpiQueryFontMetrics() at this point returns the same metrics structure
- I got back from my initial font query, with metrics designed around a 12 point
- font or so.
-
- My only current idea is to compute the ratio of logical.lMaxBaselineExt to
- physical(base).lMaxBaselineExt and multiply the metrics by this ratio to
- scale them (ascent, descent, maxwidth) to the point size I'm using. This
- seems bogus and prone to round-off error.
-
- Am I missing something?
-
- Thanks.
-
- Dave DesRoches
- ddesroch@oracle.com
-
-