---
title: "Aspose::Font::Cff::CffFontMetrics::MeasureString method"
url: "https://reference.aspose.com/font/cpp/aspose.font.cff/cfffontmetrics/measurestring/"
product: "Aspose.Font for C++"
description: "Aspose::Font::Cff::CffFontMetrics::MeasureString method. Measures string and returns string width in C++."
---

## CffFontMetrics::MeasureString method


Measures string and returns string width.

```cpp
double Aspose::Font::Cff::CffFontMetrics::MeasureString(System::String unicode, double fontSize) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| unicode | System::String | Unicode string. |
| fontSize | double | [Font](../../../aspose.font/font/) size. |

### ReturnValue

String width.

## See Also

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