[]
Gets the font em height of the text at the specified position.
public float GetFontSize(int currentPosition)
Type | Name | Description |
---|---|---|
int | currentPosition | The position of the text to inspect. |
Type | Description |
---|---|
float | the size of the font in ems of the text at the specified position. |
HRESULT IDWriteTextLayout::GetFontSize([In] unsigned int currentPosition,[Out] float* fontSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange)
public float GetFontSize(int currentPosition, out TextRange textRange)
Type | Name | Description |
---|---|---|
int | currentPosition | |
TextRange | textRange |
Type | Description |
---|---|
float |