API / geotoolkit / renderer / TextMetrics / TextMetrics
renderer.TextMetrics.TextMetrics
Type Aliases
Type Aliases
Ƭ Font: Object
| Name | Type |
|---|---|
fontfamily | string |
fontlineheight | string |
fontsize | string |
fontstyle | string |
fontweight | string |
Ƭ FontMetrics: Object
| Name | Type |
|---|---|
ascent | number |
descent | number |
height | number |
Ƭ Options: Object
width or properties object
| Name | Type | Description |
|---|---|---|
fontmetrics? | FontMetrics | font metrics |
height? | number | set the height |
width? | number | set the width |
Ƭ customMeasureTextStrategy: (text: string, textStyle?: TextStyle, useFontMetrics?: boolean) => TextMetrics
▸ (text, textStyle?, useFontMetrics?): TextMetrics
Callback for custom measure text strategy
| Name | Type |
|---|---|
text | string |
Optional textStyle | TextStyle |
Optional useFontMetrics | boolean |