Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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 |
|---|---|
| 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
Creating a custom font set using known, remote fonts on the Web