# number wx.getTextLineHeight(Object object)
Gets the height of a line of text.
# Parameters
# Object object
| Attribute | Type | Default | Required | Description |
|---|---|---|---|---|
| fontStyle | string | normal | No | Font style |
| fontWeight | string | normal | No | Font weight |
| fontSize | number | 16 | No | Font size |
| fontFamily | string | Yes | Font name | |
| text | string | Yes | Text content | |
| success | function | No | The callback function for a successful API call | |
| fail | function | No | The callback function for a failed API call | |
| complete | function | No | Callback function used when API call completed (always executed whether call succeeds or fails) |
Valid values of object.fontStyle
| Value | Description | Minimum Version |
|---|---|---|
| normal | Normal | |
| italic | Italics |
Valid values of object.fontWeight
| Value | Description | Minimum Version |
|---|---|---|
| normal | Normal | |
| bold | Bold |
# Return Values
# number
The line height of the text.