FontMetrics

value class FontMetrics(metrics: FloatArray)

Constructors

Link copied to clipboard
constructor(metrics: FloatArray)
constructor(top: Float, ascent: Float, descent: Float, bottom: Float, leading: Float, avgCharWidth: Float, maxCharWidth: Float, xMin: Float, xMax: Float, xHeight: Float, capHeight: Float, underlineThickness: Float?, underlinePosition: Float?, strikeoutThickness: Float?, strikeoutPosition: Float?)

Maintained for binary compatibility and previous construction with its named values

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

distance to reserve above baseline, typically negative

Link copied to clipboard

average character width, zero if unknown

Link copied to clipboard

greatest extent below origin of any glyph bounding box, typically positive; deprecated with variable fonts

Link copied to clipboard

height of an upper-case letter, zero if unknown, typically negative

Link copied to clipboard

distance to reserve below baseline, typically positive

Link copied to clipboard
Link copied to clipboard

distance to add between lines, typically positive or zero

Link copied to clipboard

maximum character width, zero if unknown

Link copied to clipboard

distance from baseline to bottom of stroke, typically negative

Link copied to clipboard

strikeout thickness

Link copied to clipboard
val top: Float

greatest extent above origin of any glyph bounding box, typically negative; deprecated with variable fonts

Link copied to clipboard

distance from baseline to top of stroke, typically positive

Link copied to clipboard

underline thickness

Link copied to clipboard

height of lower-case 'x', zero if unknown, typically negative

Link copied to clipboard
val xMax: Float

greatest extent to right of origin of any glyph bounding box, typically positive; deprecated with variable fonts

Link copied to clipboard
val xMin: Float

greatest extent to left of origin of any glyph bounding box, typically negative; deprecated with variable fonts

Functions

Link copied to clipboard
open override fun toString(): String