## DrFont::GetTextWidthPoints(System::String) method


Gets the text width points.

```cpp
float Aspose::Page::Font::DrFont::GetTextWidthPoints(System::String text)
```


| Parameter | Type | Description |
| --- | --- | --- |
| text | System::String | The text to calculate. |

### ReturnValue

Returns width

## See Also

* Class [String](../../../system/string/)
* Class [DrFont](../)
* Namespace [Aspose::Page::Font](../../)
* Library [Aspose.Page for C++](../../../)
## DrFont::GetTextWidthPoints(System::String, int32_t, int32_t) method


Gets the text width points.

```cpp
float Aspose::Page::Font::DrFont::GetTextWidthPoints(System::String text, int32_t startIndex, int32_t charCount)
```


| Parameter | Type | Description |
| --- | --- | --- |
| text | System::String | The text to calculate. |
| startIndex | int32_t | The start index. |
| charCount | int32_t | The char count. |

### ReturnValue

Returns width

## See Also

* Class [String](../../../system/string/)
* Class [DrFont](../)
* Namespace [Aspose::Page::Font](../../)
* Library [Aspose.Page for C++](../../../)
