FontMetrics

class FontMetrics(val top: Float, val ascent: Float, val descent: Float, val bottom: Float, val leading: Float, val avgCharWidth: Float, val maxCharWidth: Float, val xMin: Float, val xMax: Float, val xHeight: Float, val capHeight: Float, val underlineThickness: Float?, val underlinePosition: Float?, val strikeoutThickness: Float?, val strikeoutPosition: Float?)

Constructors

Link copied to clipboard
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?)

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

distance from baseline to bottom of stroke, typically negative

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 operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String