Face

A face (font) representation

Functions

Link copied to clipboard
open fun ascent(scale: Double): Double
Link copied to clipboard
abstract fun ascentMetrics(): Int
Link copied to clipboard
abstract fun bounds(scale: Double): Rectangle
Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
open fun descent(scale: Double): Double
Link copied to clipboard
abstract fun descentMetrics(): Int
Link copied to clipboard
abstract fun glyphForCharacter(character: Char): Glyph

Return the glyph for a given character

Link copied to clipboard
abstract fun kernAdvance(scale: Double, left: Char, right: Char): Double
Link copied to clipboard
open fun lineGap(scale: Double): Double
Link copied to clipboard
abstract fun lineGapMetrics(): Int
Link copied to clipboard
open fun lineSpace(scale: Double): Double
Link copied to clipboard
abstract fun unitsPerEm(): Int