IDWriteFont

<summary> The IDWriteFont interface represents a physical font in a font collection. </summary>

Members

Functions

CreateFontFace
HRESULT CreateFontFace(IDWriteFontFace* fontFace)

<summary> Creates a font face object for the font. </summary> <param name="fontFace">Receives a pointer to the newly created font face object.</param> <returns> Standard HRESULT error code. </returns>

GetFaceNames
HRESULT GetFaceNames(IDWriteLocalizedStrings* names)

<summary> Gets a localized strings collection containing the face names for the font (e.g., Regular or Bold), 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>

GetFontFamily
HRESULT GetFontFamily(IDWriteFontFamily* fontFamily)

<summary> Gets the font family to which the specified font belongs. </summary> <param name="fontFamily">Receives a pointer to the font family object.</param> <returns> Standard HRESULT error code. </returns>

GetInformationalStrings
HRESULT GetInformationalStrings(DWRITE_INFORMATIONAL_STRING_ID informationalStringID, IDWriteLocalizedStrings* informationalStrings, BOOL* exists)

<summary> Gets a localized strings collection containing the specified informational strings, indexed by locale name. </summary> <param name="informationalStringID">Identifies the string to get.</param> <param name="informationalStrings">Receives a pointer to the newly created localized strings object.</param> <param name="exists">Receives the value TRUE if the font contains the specified string ID or FALSE if not.</param> <returns> Standard HRESULT error code. If the font does not contain the specified string, the return value is S_OK but informationalStrings receives a NULL pointer and exists receives the value FALSE. </returns>

GetMetrics
void GetMetrics(DWRITE_FONT_METRICS* fontMetrics)

<summary> Gets the metrics for the font. </summary> <param name="fontMetrics">Receives the font metrics.</param>

GetSimulations
DWRITE_FONT_SIMULATIONS GetSimulations()

<summary> Gets a value that indicates what simulation are applied to the specified font. </summary>

GetStretch
DWRITE_FONT_STRETCH GetStretch()

<summary> Gets the stretch (aka. width) of the specified font. </summary>

GetStyle
DWRITE_FONT_STYLE GetStyle()

<summary> Gets the style (aka. slope) of the specified font. </summary>

GetWeight
DWRITE_FONT_WEIGHT GetWeight()

<summary> Gets the weight of the specified font. </summary>

HasCharacter
HRESULT HasCharacter(UINT32 unicodeValue, BOOL* exists)

<summary> Determines whether the font supports the specified character. </summary> <param name="unicodeValue">Unicode (UCS-4) character value.</param> <param name="exists">Receives the value TRUE if the font supports the specified character or FALSE if not.</param> <returns> Standard HRESULT error code. </returns>

IsSymbolFont
BOOL IsSymbolFont()

<summary> Returns TRUE if the font is a symbol font or FALSE if not. </summary>

Meta