Re: msdn documentation OUTLINETEXTMETRICS clarification

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


Date: Fri, 6 Aug 2004 16:18:28 +0530

Hello,
        You referred me back to the same point I referred "string widths and
heights".

 I am not sure though , if you look at the DDK IFIMETRICS you would see
something like this:-
 fwdWinAscender and fwdMacAscender and documentation says nothing, also
you have fTypoAscender.

How can I see the variation between them if there exists simultanoeus
members in the IFIMETRICS.
Ofcourse sticking to fwdWinAscender is fine but I am not sure why the win32
msdn documentation mentions
using otmMacAscent.

so we see some redundancy:-

   win32 Outlinemetrics DDK IFIMETRICS
otmMacAscent == fwdMacAscender / fTypoAscender

Then my question is why two members fwdMacAscender , fTypoAscender.

thanks
vipin

"Christoph Lindemann" <clindemann@newsgroups.nospam> wrote in message
news:#zhah95eEHA.2044@TK2MSFTNGP10.phx.gbl...
> Hi Vipin,
>
> This might be due to the origin of the TrueType format. The TrueType
format
> is originally defined by Apple.
>
> And the following snip from the library might also be interesting:
>
> "The maximum ascent and descent are different from the typographic ascent
> and descent. In TrueType and OpenType fonts, the typographic ascent and
> descent are typically the top of the f glyph and bottom of the g glyph. An
> application can retrieve the typographic ascender and descender for a **
> TrueType or OpenType ** font by calling the GetOutlineTextMetrics function
> and checking the values in the otmMacAscent and otmMacDescent members of
the
> OUTLINETEXTMETRIC structure."
>
> You can find more in the "String Widths and Heights" topic.
>
> Best regards,
> Christoph
>
>
> "vipin" <vipin@nospam.com> wrote in message
> news:e8D5j84eEHA.3632@TK2MSFTNGP11.phx.gbl...
> > Hi,
> > GetOutlineTextMetrics(...)'s OUTLINETEXTMETRIC has OtmMacAscent
> and
> > OtmAscent. But somehow msdn documentation emphasis on using OtmMacAscent
> and
> > OtmMacDescent members. I am not sure what's the difference from the
other
> > members, OtmAscent and OtmDescent.
> >
> > Documentation:-
> > ms-help://MS.MSDNQTR.2002JAN.1033/gdi/fontext_56yb.htm
> >
> > Can I get clarity on this documentation here because I do some text
> analysis
> > for precise placement
> > on piece of paper?
> >
> > thanks
> > vipin
> >
> >
>
>



Relevant Pages

  • Re: mmap for I/O access
    ... 16-bit registers, ... like it corresponds exactly with the documentation, ... of different sizes directly by accessing members of a struct. ... type of architecture). ...
    (comp.os.linux.embedded)
  • Re: msdn documentation OUTLINETEXTMETRICS clarification
    ... > Hi Vipin, ... > 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)
  • Re: .sh
    ... >> Dear members ... >> applicaton? ... you would need to read the documentation ... that came with it, read the pages on the website you got it from, ask the ...
    (RedHat)
  • 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)