Freigeben über


IDWriteFontFile::Analyze Method

Analyzes a file and returns whether it represents a font, and whether the font type is supported by the font system.

Syntax

virtual HRESULT Analyze(
  [out]            BOOL * isSupportedFontType,
  [out]            DWRITE_FONT_FILE_TYPE * fontFileType,
  [out, optional]  DWRITE_FONT_FACE_TYPE * fontFaceType,
  [out]            UINT32 * numberOfFaces
) = 0;

Parameter

  • isSupportedFontType [out]
    TRUE if the font type is supported by the font system; otherwise, FALSE.

  • fontFileType [out]
    When this method returns, contains a value that indicates the type of the font file. Note that even if isSupportedFontType is FALSE, the fontFileType value may be different from DWRITE_FONT_FILE_TYPE_UNKNOWN.

  • fontFaceType [out, optional]
    When this method returns, contains a value that indicates the type of the font face. If fontFileType is not equal to DWRITE_FONT_FILE_TYPE_UNKNOWN, then that can be constructed from the font file.

  • numberOfFaces [out]
    When this method returns, contains the number of font faces contained in the font file.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Hinweise

Wichtig  Certain font file types are recognized, but not supported by the font system. For example, the font system will recognize a file as a Type 1 font file but will not be able to construct a font face object from it. In such situations, Analyze will set isSupportedFontType output parameter to FALSE.

Anforderungen

Mindestens unterstützter Client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista

Mindestens unterstützter Server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008

Header

Dwrite.h

Bibliothek

Dwrite.lib

DLL

Dwrite.dll

Siehe auch

IDWriteFontFile