GlyphPath

data class GlyphPath(val unitsPerEm: Int = 1000)

Author

Colton Daily

Constructors

Link copied to clipboard
fun GlyphPath(unitsPerEm: Int = 1000)

Types

Link copied to clipboard
data class Command(val type: GlyphPath.CommandType, val x: Float = 0.0f, val y: Float = 0.0f, val x1: Float = 0.0f, val y1: Float = 0.0f, val x2: Float = 0.0f, val y2: Float = 0.0f)
Link copied to clipboard

Functions

Link copied to clipboard
fun bezierCurveTo(x1: Float, y1: Float, x2: Float, y2: Float, x: Float, y: Float)
Link copied to clipboard
Link copied to clipboard
fun close()
Link copied to clipboard
fun curveTo(x1: Float, y1: Float, x2: Float, y2: Float, x: Float, y: Float)
Link copied to clipboard
fun extend(path: GlyphPath)
fun extend(rect: Rect)
Link copied to clipboard
Link copied to clipboard
fun lineTo(x: Float, y: Float)
Link copied to clipboard
fun moveTo(x: Float, y: Float)
Link copied to clipboard
fun quadTo(x1: Float, y1: Float, x: Float, y: Float)
Link copied to clipboard
fun recalculate(x: Int = 0, y: Int = 0, fontSize: Int = 72, scaleX: Float? = null, scaleY: Float? = null)
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
val unitsPerEm: Int = 1000