sud.getTextLineHeight
JS
Number sud.getTextLineHeight(Object object)Gets the line height of a single line of text.
Parameters
- Object object: Input parameters. See the table below for details.
object properties:
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| fontStyle | string | No | normal | Font style |
| fontWeight | string | No | normal | Font weight |
| fontSize | number | No | 16 | Font size |
| fontFamily | string | Yes | Font name | |
| text | string | Yes | Text content | |
| success | function | No | Callback function for a successful API call | |
| fail | function | No | Callback function for a failed API call | |
| complete | function | No | Callback function for when the API call ends |
Return Value
- Number: Returns the line height of the text
