Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
GetOutlineTextMetrics
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  UINT GetOutlineTextMetrics( UINT cbData,
                              OUTLINETEXTMETRIC FAR* lpotm ) const;
 
  Parameter   Description
 
  <cbData>    Specifies the size, in bytes, of the buffer to which
              information is returned.
 
  <lpotm>     Points to an OUTLINETEXTMETRIC structure. If this parameter
              is NULL, the function returns the size of the buffer
              required for the retrieved metric information.
 
  Remarks
 
  Retrieves metric information for TrueType fonts.
 
  The OUTLINETEXTMETRIC structure contains most of the font metric
  information provided with the TrueType format, including a TEXTMETRIC
  structure. The last four members of the OUTLINETEXTMETRIC structure
  are pointers to strings. Applications should allocate space for these
  strings in addition to the space required for the other members. Because
  there is no system-imposed limit to the size of the strings, the
  simplest method for allocating memory is to retrieve the required size
  by specifying NULL for <lpotm> in the first call to the
  GetOutlineTextMetrics function.
 
  Return Value
 
  Nonzero if the function is successful; otherwise, 0.
 
  See Also
 
  ::GetTextMetrics, ::GetOutlineTextMetrics, CDC::GetTextMetrics
 
 
                                     -♦-