Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class DecorationMetrics(val underlinePosition: Double, val underlineThickness: Double, val strikeoutPosition: Double, val strikeoutThickness: Double, val underlineFromFont: Boolean, val strikeoutFromFont: Boolean)

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.

Link copied to clipboard
interface Face : AutoCloseable

A face (font) representation

Link copied to clipboard

Represents the master configuration for a font face, allowing manipulation of axis values within specified ranges for variable font adjustments.

Link copied to clipboard
interface Glyph

Glyph representation

Functions

Link copied to clipboard
fun loadFace(fileOrUrl: String): Face

Load a face

Link copied to clipboard
suspend fun loadFaceSuspend(fileOrUrl: String): Face

Load a face without blocking, in browsers fonts are fetched asynchronously