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.
From a font set, create a collection of fonts grouped into families.
Syntax
HRESULT CreateFontCollectionFromFontSet(
IDWriteFontSet *fontSet,
DWRITE_FONT_FAMILY_MODEL fontFamilyModel,
[out] IDWriteFontCollection2 **fontCollection
);
Parameters
fontSet
Type: IDWriteFontSet*
A set of fonts to use to build the collection.
fontFamilyModel
Type: DWRITE_FONT_FAMILY_MODEL
How to group families in the collection.
[out] fontCollection
Type: IDWriteFontCollection2**
The address of a pointer to an IDWriteFontCollection2 interface. On successful completion, the function sets the pointer to a newly created font collection object, otherwise it sets the pointer to nullptr.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 10 Build 16299 |
| Minimum supported server | Windows 10 Build 16299 |
| Target Platform | Windows |
| Header | dwrite_3.h |
| Library | Dwrite.lib |