GlyphMetrics

data class GlyphMetrics(val advanceWidth: Double, val leftSideBearing: Double, val xBitmapShift: Double, val yBitmapShift: Double)(source)

Represents the metrics of a glyph, which define its visual and positional characteristics in a font rendering context.

Constructors

Link copied to clipboard
constructor(advanceWidth: Double, leftSideBearing: Double, xBitmapShift: Double, yBitmapShift: Double)

Properties

Link copied to clipboard

The horizontal distance the pen moves after rendering this glyph.

Link copied to clipboard

The horizontal space between the glyph’s left edge and its origin.

Link copied to clipboard

The horizontal offset applied to the glyph's bitmap representation.

Link copied to clipboard

The vertical offset applied to the glyph's bitmap representation.