Re: msdn documentation OUTLINETEXTMETRICS clarification
From: vipin (vipin_at_nospam.com)
Date: 08/06/04
- Next message: vipin: "Re: How important is it to handle Memory Leaks"
- Previous message: Christoph Lindemann: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- In reply to: Christoph Lindemann: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Next in thread: Christoph Lindemann: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Reply: Christoph Lindemann: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
>
>
- Next message: vipin: "Re: How important is it to handle Memory Leaks"
- Previous message: Christoph Lindemann: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- In reply to: Christoph Lindemann: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Next in thread: Christoph Lindemann: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Reply: Christoph Lindemann: "Re: msdn documentation OUTLINETEXTMETRICS clarification"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|