Edit

Share via


IDWriteRemoteFontFileLoader::CreateRemoteStreamFromKey method (dwrite_3.h)

Creates a remote font file stream object that encapsulates an open file resource and can be used to download remote file data.

Syntax

HRESULT CreateRemoteStreamFromKey(
  [in]  void const                  *fontFileReferenceKey,
        UINT32                      fontFileReferenceKeySize,
  [out] IDWriteRemoteFontFileStream **fontFileStream
);

Parameters

[in] fontFileReferenceKey

Type: void

Font file reference key that uniquely identifies the font file resource within the scope of the font loader being used.

fontFileReferenceKeySize

Type: UINT32

Size of font file reference key in bytes.

[out] fontFileStream

Type: IDWriteRemoteFontFileStream**

Pointer to the newly created font file stream.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Remarks

Unlike CreateStreamFromKey, this method can be used to create a stream for a remote file. If the file is remote, the client must call IDWriteRemoteFontFileStream::BeginDownload with an empty array of file fragments before the stream can be used to get the file size or access data.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 15063
Minimum supported server Windows 10 Build 15063
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib

See also

IDWriteRemoteFontFileLoader