Re: msdn documentation OUTLINETEXTMETRICS clarification

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: vipin (vipin_at_nospam.com)
Date: 08/18/04


Date: Wed, 18 Aug 2004 12:15:42 +0530

Hi David,
               sorry for the late response. looks like otmMac* are fine,
atleast I ran it on some data sets and they seem to match.
I would rigorous it on more data sets(font /char combination) when I get
some time.

The code which I wrote wasn't meant to target any specific printer, thats
one of the reason I had to
go for win32 instead of the printer control language directly.

thanks again
vipin

"David" <dwoodenonline@microsoft.com> wrote in message
news:JCcq#F$fEHA.3356@cpmsftngxa06.phx.gbl...
> Hi Vipin,
>
> This is a bug in our documentation and I have confirmed that otmMacAscent
> and otmMacDescent are the appropriate fields to use. I have informed our
> documentation folks of the errors and obvious inconsistencies.
>
> You will also find that (abs(otmMacAscent) + abs(otmMacDescent)) gives
you
> the same value that TEXTMETRIC.tmHeight gives you. Also, otmMacAscent ==
> TEXTMETRIC.tmAscent. and. abs(otmMacDescent) == TEXTMETRIC.tmDescent.
>
> How are you currently trying to do precise text placement? It is
generally
> difficult if you are using Win32 since the Windows font rasterizer can
> scale things for readability, making the raw metrics inconsistent with the
> actual output.
>
> Again, please use otmMacAscent and otmMacDescent if the typographic
> ascender and descender are needed. The documentation at
>
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontex
> t_56yb.asp) is correct. Let me know if you have any questions.
>
> Regards,
> Dave Wooden
> Microsoft Developer Support
>
> This posting is provided AS IS with no warranties, and confers no rights.
>



Relevant Pages

  • Re: msdn documentation OUTLINETEXTMETRICS clarification
    ... fwdWinAscender and fwdMacAscender and documentation says nothing, ... using otmMacAscent. ... Then my question is why two members fwdMacAscender, ...
    (microsoft.public.win32.programmer.gdi)
  • Re: msdn documentation OUTLINETEXTMETRICS clarification
    ... > This is a bug in our documentation and I have confirmed that otmMacAscent ... > documentation folks of the errors and obvious inconsistencies. ... making the raw metrics inconsistent with the ...
    (microsoft.public.win32.programmer.gdi)
  • Re: msdn documentation OUTLINETEXTMETRICS clarification
    ... This is a bug in our documentation and I have confirmed that otmMacAscent ... documentation folks of the errors and obvious inconsistencies. ... making the raw metrics inconsistent with the ...
    (microsoft.public.win32.programmer.gdi)