openrndr / org.openrndr.draw / FontImageMap

FontImageMap

class FontImageMap : FontMap (source)

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

kerningTable

val kerningTable: MutableMap<CharacterPair, 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

fromFile

fun fromFile(file: String, size: Double, characterSet: Set<Char> = defaultFontmapCharacterSet, contentScale: Double = 1.0): FontImageMap

fromUrl

fun fromUrl(fontUrl: String, size: Double, characterSet: Set<Char> = defaultFontmapCharacterSet, contentScale: Double = 1.0): FontImageMap