StrutStyle

Register on Lenra

Defines the strut of a text line.

Properties

AttributeDescriptionType
debugLabelA label to help identify this strut style.string
fontFamilyThe font family to use for this strut style.string
fontFamilyFallbackA list of fallback font families to use for this strut style.array[]
fontSizeThe font size to use for this strut style.number
fontWeightThe font weight to use for this strut style.string
forceStrutHeightWhether to force the strut height.boolean
heightThe minimum height of the strut.number
leadingThe additional leading of the strut which is a multiple of fontSize.number
leadingDistributionThe TextLeadingDistribution enum.string ("even", "proportional")