Skip to content

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:

PropertyTypeRequiredDefaultDescription
fontStylestringNonormalFont style
fontWeightstringNonormalFont weight
fontSizenumberNo16Font size
fontFamilystringYesFont name
textstringYesText content
successfunctionNoCallback function for a successful API call
failfunctionNoCallback function for a failed API call
completefunctionNoCallback function for when the API call ends

Return Value

  • Number: Returns the line height of the text