TextPositioning

Shared geometry channel for every anchored TTF layout. One coordinate consumes one of 992 ids, independently of font and opacity.

Types

Link copied to clipboard
data class Placement(val anchor: GuiAnchor?, val y: Int)
Link copied to clipboard
data class Target(val fontId: String, val positionId: Int)

Properties

Link copied to clipboard
const val DARK_SHIFT: Int
Link copied to clipboard
const val LIGHT_SHIFT: Int
Link copied to clipboard
const val MAX_POSITIONS: Int = 992
Link copied to clipboard
const val SPACE_FONT: String
Link copied to clipboard
const val STRIDE: Int = 2048

Functions

Link copied to clipboard
Link copied to clipboard
fun carrierFont(fontId: String, light: Boolean): String
Link copied to clipboard
fun carrierName(fontId: String, light: Boolean): String
Link copied to clipboard
fun carrierShift(light: Boolean): Int
Link copied to clipboard
fun code(id: Int): Int
Link copied to clipboard
fun id(anchor: GuiAnchor?, y: Int): Int?
Link copied to clipboard
fun offset(id: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun shaderCode(rasterEnabled: Boolean = false): String
Link copied to clipboard
Link copied to clipboard
fun sourceFont(fontId: String, positionId: Int): String
Link copied to clipboard
fun space(value: Int): JsonObject
Link copied to clipboard
fun spacing(value: Int): String

Powers of two make the prefix exact; the client still performs glyph advances at the encoded magnitude.