IDWriteFontFamily

<summary> The IDWriteFontFamily interface represents a set of fonts that share the same design but are differentiated by weight, stretch, and style. </summary>

Members

Functions

GetFamilyNames
HRESULT GetFamilyNames(IDWriteLocalizedStrings* names)

<summary> Creates a localized strings object that contains the family names for the font family, indexed by locale name. </summary> <param name="names">Receives a pointer to the newly created localized strings object.</param> <returns> Standard HRESULT error code. </returns>

GetFirstMatchingFont
HRESULT GetFirstMatchingFont(DWRITE_FONT_WEIGHT weight, DWRITE_FONT_STRETCH stretch, DWRITE_FONT_STYLE style, IDWriteFont* matchingFont)

<summary> Gets the font that best matches the specified properties. </summary> <param name="weight">Requested font weight.</param> <param name="stretch">Requested font stretch.</param> <param name="style">Requested font style.</param> <param name="matchingFont">Receives a pointer to the newly created font object.</param> <returns> Standard HRESULT error code. </returns>

GetMatchingFonts
HRESULT GetMatchingFonts(DWRITE_FONT_WEIGHT weight, DWRITE_FONT_STRETCH stretch, DWRITE_FONT_STYLE style, IDWriteFontList* matchingFonts)

<summary> Gets a list of fonts in the font family ranked in order of how well they match the specified properties. </summary> <param name="weight">Requested font weight.</param> <param name="stretch">Requested font stretch.</param> <param name="style">Requested font style.</param> <param name="matchingFonts">Receives a pointer to the newly created font list object.</param> <returns> Standard HRESULT error code. </returns>

Inherited Members

From IDWriteFontList

GetFontCollection
HRESULT GetFontCollection(IDWriteFontCollection* fontCollection)

<summary> Gets the font collection that contains the fonts. </summary> <param name="fontCollection">Receives a pointer to the font collection object.</param> <returns> Standard HRESULT error code. </returns>

GetFontCount
UINT32 GetFontCount()

<summary> Gets the number of fonts in the font list. </summary>

GetFont
HRESULT GetFont(UINT32 index, IDWriteFont* font)

<summary> Gets a font given its zero-based index. </summary> <param name="index">Zero-based index of the font in the font list.</param> <param name="font">Receives a pointer to the newly created font object.</param> <returns> Standard HRESULT error code. </returns>

Meta