TextBaseline

interface TextBaseline(source)

A line that layoutTextOnContour places text along: a pose at every distance along it, from 0 to length. Implemented by ContourBaseline for 2D contours, and by baselines along 3D paths.

Inheritors

Properties

Link copied to clipboard
abstract val closed: Boolean

true when the baseline comes round to its start, so that text can wrap around it

Link copied to clipboard
abstract val length: Double

the length of the baseline

Functions

Link copied to clipboard
abstract fun pose(distance: Double): Matrix44

The frame at distance along the baseline that places the outline of a glyph: its x-axis follows the baseline, its y-axis points away from the ascenders, like the y-axis of the glyph positions of typesetText