Freigeben über


IDWriteFactory::CreateCustomFontCollection Method

Creates a font collection using a custom font collection loader.

Syntax

virtual HRESULT CreateCustomFontCollection(
  IDWriteFontCollectionLoader * collectionLoader,
  [in]   const void * collectionKey,
  UINT32  collectionKeySize,
  [out]  IDWriteFontCollection ** fontCollection
) = 0;

Parameter

  • collectionLoader
    An application-defined font collection loader, which must have been previously registered using RegisterFontCollectionLoader.

  • collectionKey [in]
    The key used by the loader to identify a collection of font files. The buffer allocated for this key should at least be the size of collectionKeySize.

  • collectionKeySize
    The size, in bytes, of the collection key.

  • fontCollection [out]
    Contains an address of a pointer to the system font collection object if the method succeeds, or NULL in case of failure.

Rückgabewert

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

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

IDWriteFactory