Typeface

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Return a rectangle (scaled to 1-pt) that represents the union of the bounds of all of the glyphs, but each one positioned at (0,). This may be conservatively large, and will not take into account any hinting or other size-specific adjustments.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect open val isClosed: Boolean

Check if underlying resource is closed.

Link copied to clipboard

This is a style bit, advance widths may vary even if this returns true.

Link copied to clipboard
Link copied to clipboard
expect val refCount: Int

Number of references on underlying native object.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

It is possible the number of axes can be retrieved but actual position cannot.

Link copied to clipboard

It is possible the number of axes can be retrieved but actual position cannot.

Functions

Link copied to clipboard
expect open fun close()

Free underlying native resource, peer is useless afterwards.

Link copied to clipboard

Given a run of glyphs, return the associated horizontal adjustments. Adjustments are in "design units", which are integers relative to the typeface's units per em (see .getUnitsPerEm).

Link copied to clipboard

Given a string, returns corresponding glyph ids.

Link copied to clipboard

Return an immutable copy of the requested font table, or null if that table was not found.

Link copied to clipboard

Given a table tag, return the size of its contents, or 0 if not present

Link copied to clipboard
fun getUTF32Glyph(unichar: Int): Short

This is a short-cut for calling .getUTF32Glyphs.

Link copied to clipboard

Given an array of UTF32 character codes, return their corresponding glyph IDs.

Link copied to clipboard

Return a new typeface based on this typeface but parameterized as specified in the variation. If the variation does not supply an argument for a parameter in the font then the value from this typeface will be used as the value for that argument.

fun makeClone(variations: Array<FontVariation>, collectionIndex: Int = 0): Typeface

Return a new typeface based on this typeface but parameterized as specified in the variations. If the variations does not supply an argument for a parameter in the font then the value from this typeface will be used as the value for that argument.

Link copied to clipboard
open override fun toString(): String