FontImageMap

class 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) : FontMap

A type of FontMap which keeps characters pre-rendered in a ColorBuffer texture at a specific font size.

Constructors

FontImageMap
Link copied to clipboard
common
fun 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)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

characterWidth
Link copied to clipboard
common
fun characterWidth(character: Char): Double
kerning
Link copied to clipboard
common
fun kerning(left: Char, right: Char): Double

Properties

ascenderLength
Link copied to clipboard
common
open override val ascenderLength: Double
contentScale
Link copied to clipboard
common
val contentScale: Double
descenderLength
Link copied to clipboard
common
open override val descenderLength: Double
glyphMetrics
Link copied to clipboard
common
val glyphMetrics: Map<Char, GlyphMetrics>
height
Link copied to clipboard
common
open override val height: Double
kerningTable
Link copied to clipboard
common
val kerningTable: MutableMap<CharacterPair, Double>
leading
Link copied to clipboard
common
open override val leading: Double
map
Link copied to clipboard
common
val map: Map<Char, IntRectangle>
name
Link copied to clipboard
common
open override val name: String
size
Link copied to clipboard
common
open override val size: Double
texture
Link copied to clipboard
common
val texture: ColorBuffer