FontImageMap

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

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

Constructors

Link copied to clipboard
constructor(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

Link copied to clipboard
object Companion

Functions

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

Properties

Link copied to clipboard
open override val ascenderLength: Double
Link copied to clipboard
Link copied to clipboard
open override val descenderLength: Double
Link copied to clipboard
Link copied to clipboard
open override val height: Double
Link copied to clipboard
Link copied to clipboard
open override val leading: Double
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val size: Double
Link copied to clipboard