Partager via


CD2DTextLayout::GetFontFamilyName

Copies the font family name of the text at the specified position.

CString GetFontFamilyName(
   UINT32 currentPosition,
   DWRITE_TEXT_RANGE* textRange = NULL
) const;

Parameters

  • currentPosition
    The position of the text to examine.

  • textRange
    The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the font family name.

Return Value

CString object that contains the current font family name.

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DTextLayout Class