Package-level declarations

Types

Link copied to clipboard
class BitmapFont(    val fontSize: Float,     val lineHeight: Float,     val base: Float,     val capHeight: Float,     val padding: FontMetrics.Padding,     val textures: List<Texture>,     val glyphs: Map<Int, BitmapFont.Glyph>,     val kernings: Map<Int, Kerning>,     val pages: Int = 1) : Font

A Font that handles rendering of bitmap fonts using the BMFont text format.

Link copied to clipboard

A FontCache that provides additional render and text methods for a BitmapFont.

Link copied to clipboard
Link copied to clipboard
data class ContourPoint(val x: Int = 0, val y: Int = 0, val onCurve: Boolean = false, val lastPointOfContour: Boolean = false)
Link copied to clipboard
interface Font : Disposable

An interface for describing and creating fonts in order to render their glyphs.

Link copied to clipboard
open class FontCache(val pages: Int = 1)

Caches glyph geometry to provide a fast way to render static textures without having recompute the glyph each time. This is a base class and can be extended to add additional functionality to specific fonts.

Link copied to clipboard
data class FontMetrics(    val size: Float = 0.0f,     val top: Float = 0.0f,     val ascent: Float = 0.0f,     val baseline: Float = 0.0f,     val descent: Float = 0.0f,     val bottom: Float = 0.0f,     val leading: Float = 0.0f,     val maxWidth: Float = 0.0f,     val capHeight: Float = 0.0f,     val padding: FontMetrics.Padding = Padding(0, 0, 0, 0))

Holds data that describes a Font to be used for rendering glyphs.

Link copied to clipboard
Link copied to clipboard
data class GlyphMetrics(    val size: Float = 0.0f,     val code: Int = 0,     val bounds: Rect = Rect(),     val xAdvance: Float = 0.0f,     val u: Float = 0.0f,     val v: Float = 0.0f,     val u2: Float = 0.0f,     val v2: Float = 0.0f,     val page: Int = 0)

Metrics that describe a single glyph which can be used for rendering.

Link copied to clipboard
data class GlyphPath(val unitsPerEm: Int = 1000)
Link copied to clipboard
data class GlyphReference(    val glyphIndex: Int,     val x: Int,     val y: Int,     val scaleX: Float,     val scale01: Float,     val scale10: Float,     val scaleY: Float,     var matchedPoints: IntArray? = null)
Link copied to clipboard
class GlyphRun
Link copied to clipboard
class GpuFont(context: Context, defaultFont: TtfFont, atlasWidth: Int = 256, atlasHeight: Int = 512, gridSize: Int = 10, maxVertices: Int = 10000)
Link copied to clipboard
class Kerning(val first: Int, val second: Int, val amount: Int)
Link copied to clipboard
class TtfFont(val chars: CharSequence = CharacterSets.LATIN_ALL) : Font
Link copied to clipboard
data class TtfGlyph(    val name: String?,     val index: Int,     val xMin: Int,     val yMin: Int,     val xMax: Int,     val yMax: Int,     val advanceWidth: Float,     val leftSideBearing: Int,     var numberOfContours: Int,     val unicode: Int,     val unicodes: List<Int>,     val path: GlyphPath,     val endPointIndices: List<Int>,     val instructionLength: Int,     val instructions: List<Byte>,     val points: List<ContourPoint>,     val refs: List<GlyphReference>,     val isComposite: Boolean,     val unitsPerEm: Int)
Link copied to clipboard