public class TextMetrics:
Result of Painter.measureText.
metrics = TextMetrics(64.0, 9.0, 3.0, 12.0) print(metrics.width)
| Modifier and Type | Member | Description |
|---|---|---|
| public property | ascentascent as Double |
Estimated ascent. |
| public property | descentdescent as Double |
Estimated descent. |
| public property | heightheight as Double |
Estimated total height. |
| public property | widthwidth as Double |
Estimated text width. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | TextMetricsTextMetrics(width as Double = 0.0, ascent as Double = 0.0, descent as Double = 0.0, height as Double = 0.0): |
No summary. |