UID | title | description | helpviewer_keywords | tech.root | ms.date | ms.keywords | req.construct-type | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:dwrite_3.IDWriteFontSetBuilder2.AddFont |
IDWriteFontSetBuilder2::AddFont |
Adds a font to the set being built. |
|
DirectWrite |
09/16/2019 |
IDWriteFontSetBuilder2 interface [Direct Write],AddFont method, IDWriteFontSetBuilder2.AddFont, IDWriteFontSetBuilder2::AddFont, AddFont, AddFont method [Direct Write], AddFont method [Direct Write],IDWriteFontSetBuilder2 interface, directwrite.idwritefontsetbuilder2_addfont, dwrite_3/IDWriteFontSetBuilder2::AddFont |
function |
dwrite_3.h |
Windows |
Windows 10 Build 20348 |
Windows 10 Build 20348 |
Dwrite.lib |
Windows |
|
|
|
|
|
|
Adds a font to the set being built, with the caller supplying enough information to search on and determine axis ranges, avoiding the need to open the potentially non-local font.
Type: IDWriteFontFile*
Font file reference object to add to the set.
Type: UINT32
The zero-based index of a font face in a collection.
Type: DWRITE_FONT_SIMULATIONS
Font face simulation flags for algorithmic emboldening and italicization.
Type: DWRITE_FONT_AXIS_VALUE const *
A pointer to an array containing a list of font axis values. The array should be the size (the number of elements) indicated by the fontAxisValueCount argument.
Type: UINT32
The number of font axis values contained in the fontAxisValues array.
Type: DWRITE_FONT_AXIS_RANGE const *
List of axis ranges.
Type: UINT32
Number of axis ranges.
Type: DWRITE_FONT_PROPERTY const *
List of properties to associate with the reference.
Type: UINT32
The number of properties defined.
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
The font properties should include at least a family (typographic or weight/style/stretch). Otherwise the font would be accessible in the IDWriteFontSet only by index, not name.