FontMap

abstract class FontMap(source)

Represents an abstract mapping of font characteristics and metrics.

This class provides essential information about a font, such as its size, ascender length, descender length, total height, leading, and name. It serves as a base to define font-related properties for other implementations.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val ascenderLength: Double

The length of the ascender part of the font, which is the height above the baseline.

Link copied to clipboard
abstract val descenderLength: Double

The length of the descender part of the font, which is the height below the baseline.

Link copied to clipboard
abstract val height: Double

The total height of the font, combining ascender, descender, and other elements.

Link copied to clipboard
abstract val leading: Double

The vertical spacing between lines of text.

Link copied to clipboard
abstract val name: String

The name of the font.

Link copied to clipboard
abstract val size: Double

The size of the font.