IDWriteFactory5::CreateHttpFontFileLoader method (dwrite_3.h)

Creates a remote font file loader that can create font file references from HTTP or HTTPS URLs. The caller is responsible for registering and unregistering the loader.

Syntax

HRESULT CreateHttpFontFileLoader(
        wchar_t const               *referrerUrl,
        wchar_t const               *extraHeaders,
  [out] IDWriteRemoteFontFileLoader **newLoader
);

Parameters

referrerUrl

Type: wchar_t const*

Optional referrer URL for HTTP requests.

extraHeaders

Type: wchar_t const*

Optional additional header fields to include in HTTP requests. Each header field consists of a name followed by a colon (":") and the field value, as specified by RFC 2616. Multiple header fields may be separated by newlines.

[out] newLoader

Type: IDWriteRemoteFontFileLoader**

Receives a pointer to the newly-created loader object.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

Requirement Value
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib

See also

Creating a custom font set using known, remote fonts on the Web

IDWriteFactory5