DecorationMetrics

data class DecorationMetrics(val underlinePosition: Double, val underlineThickness: Double, val strikeoutPosition: Double, val strikeoutThickness: Double, val underlineFromFont: Boolean, val strikeoutFromFont: Boolean)(source)

The positions and thicknesses of the lines that decorate text: underlines and strikeouts (line-through), in pixels like Face.ascent. Positions are those of the centers of the lines, positive above the baseline, so underlines usually have a negative position. Overlines have no metrics in fonts, they are usually drawn at Face.ascent.

Constructors

Link copied to clipboard
constructor(underlinePosition: Double, underlineThickness: Double, strikeoutPosition: Double, strikeoutThickness: Double, underlineFromFont: Boolean, strikeoutFromFont: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

are the strikeout metrics those of the font? Otherwise they are a fallback

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

are the underline metrics those of the font? Otherwise they are a fallback

Link copied to clipboard
Link copied to clipboard