Re: msdn documentation OUTLINETEXTMETRICS clarification
From: vipin (vipin_at_nospam.com)
Date: 08/18/04
- Next message: Christoph Lindemann: "Re: Printer status"
- Previous message: vipin: "Re: how does Photoshop know the physical units when it shows image?"
- In reply to: David: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Next in thread: Yan-Hong Huang[MSFT]: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Reply: Yan-Hong Huang[MSFT]: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Messages sorted by: [ date ] [ thread ]
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.
>
- Next message: Christoph Lindemann: "Re: Printer status"
- Previous message: vipin: "Re: how does Photoshop know the physical units when it shows image?"
- In reply to: David: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Next in thread: Yan-Hong Huang[MSFT]: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Reply: Yan-Hong Huang[MSFT]: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|