IDWriteFactory5::CreateHttpFontFileLoader method
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
Optional referrer URL for HTTP requests.
- extraHeaders
-
Type: wchar_t
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.
- newLoader [out]
-
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
|
Header |
|
|---|---|
|
Library |
|
See also