Glyph

interface Glyph(source)

Glyph representation

Since

0.4.3

Functions

Link copied to clipboard
abstract fun advanceWidth(scale: Double): Double
Link copied to clipboard
abstract fun bitmapBounds(scale: Double, subpixel: Boolean = true): IntRectangle

Compute the bitmap bounds of the glyph

Link copied to clipboard
abstract fun bounds(scale: Double): Rectangle

Compute the glyph bounds in up=+y space

Link copied to clipboard
abstract fun leftSideBearing(scale: Double): Double
Link copied to clipboard
abstract fun rasterize(scale: Double, bitmap: MPPBuffer, stride: Int, subpixel: Boolean)

Rasterize the glyph at the given size

Link copied to clipboard
abstract fun shape(scale: Double): Shape

Generate a Shape for this glyph

Link copied to clipboard
abstract fun topSideBearing(scale: Double): Double