openrndr / org.openrndr.draw / FontImageMap

FontImageMap

class FontImageMap : FontMap

Constructors

<init>

FontImageMap(texture: ColorBuffer, map: Map<Char, IntRectangle>, glyphMetrics: Map<Char, GlyphMetrics>, size: Double, contentScale: Double, ascenderLength: Double, descenderLength: Double, height: Double, leading: Double, name: String)

Properties

ascenderLength

val ascenderLength: Double

contentScale

val contentScale: Double

descenderLength

val descenderLength: Double

glyphMetrics

val glyphMetrics: Map<Char, GlyphMetrics>

height

val height: Double

leading

val leading: Double

map

val map: Map<Char, IntRectangle>

name

val name: String

size

val size: Double

texture

val texture: ColorBuffer

Functions

characterWidth

fun characterWidth(character: Char): Double

kerning

fun kerning(left: Char, right: Char): Double

Companion Object Functions

fromUrl

fun fromUrl(fontUrl: String, size: Double, contentScale: Double = 1.0): FontImageMap