Package-level declarations

Types

Link copied to clipboard

Bidirectional character types as defined in Unicode Standard Annex #9.

Link copied to clipboard
data class BidiParagraph(val start: Int, val end: Int, val level: Int)

A paragraph in a BidiText.

Link copied to clipboard
data class BidiRun(val start: Int, val end: Int, val level: Int, val script: Script)

A run of text with a single embedding level and a single script.

Link copied to clipboard
interface BidiText

The result of the bidirectional analysis of a text.

Link copied to clipboard
interface BidiTextDriver

Interface for bidirectional text analysis according to the Unicode Bidirectional Algorithm (UAX #9) and script itemization.

Link copied to clipboard

A caching implementation of FontDriver that wraps another driver to avoid loading the same face repeatedly.

Link copied to clipboard

A caching implementation of TextShapingDriver that wraps another driver to optimize text shaping performance.

Link copied to clipboard
Link copied to clipboard
interface FontDriver

FontDriver interface

Link copied to clipboard
enum Script : Enum<Script>
Link copied to clipboard
data class ShapeFeature(val tag: String, val value: Int, val range: UIntRange = UIntRange(0u, 0xff_ff_ff_ffu))
Link copied to clipboard
data class ShapeResult(val glyphIndex: Int, val offset: Vector2, val advance: Vector2)

Represents the result of a shape operation, which is generally utilized in the rendering or layout process of text or graphical shapes.

Link copied to clipboard

Interface for implementing text shaping logic.

Properties

Link copied to clipboard

Directory in which fonts downloaded over http(s) are cached.

Functions

Link copied to clipboard

Converts an embedding level to its direction, even levels are left-to-right, odd levels are right-to-left.

Link copied to clipboard

The bytes of the data: url url: data:[<mediatype>][;base64],<data>

Link copied to clipboard
fun fontBytesFromFileOrUrl(fileOrUrl: String, cacheDirectory: File = fontCacheDirectory): ByteArray

Read font bytes from a file or url.