[]
Measure text for this font subset.
public int MeasureText(string text, bool vertical, out int width, out int height, int defaultWidth = 1000)
| Type | Name | Description |
|---|---|---|
| string | text | The text string. |
| bool | vertical | Whether using a vertical font. |
| int | width | Output calculated width of the text. |
| int | height | Output calculated height of the text. |
| int | defaultWidth | The default width of some character. |
| Type | Description |
|---|---|
| int | If calculated then return true, otherwise false. |
Measure text for this font subset.
public int MeasureText(string text, bool vertical, out int width, out int height, out int[] charWidths, int defaultWidth = 1000)
| Type | Name | Description |
|---|---|---|
| string | text | The text string. |
| bool | vertical | Whether using a vertical font. |
| int | width | Output calculated width of the text. |
| int | height | Output calculated height of the text. |
| int[] | charWidths | Output calculated widths for each character. |
| int | defaultWidth | The default width of some character. |
| Type | Description |
|---|---|
| int | If calculated then return true, otherwise false. |