## ITextMetrics interface

Represents the dimension of a text in the canvas.

```java
public interface ITextMetrics
```

## Properties

| Name | Description |
| --- | --- |
| [getWidth](../../com.aspose.html.dom.canvas/itextmetrics/width/) Is a double giving the calculated width of a segment of inline text in CSS pixels. |

### See Also

* package [com.aspose.html.dom.canvas](../../com.aspose.html.dom.canvas/)
* package [Aspose.HTML](../../)
