Sp

value class Sp(val value: Float)

Scale-independent pixel, used for font sizes.

In PdfKmp 1.sp == 1 PDF point (same as Dp). The separate type exists so font size APIs read naturally and so we can introduce real scaling later (e.g. user-controlled accessibility scaling) without an API break.

Constructors

Link copied to clipboard
constructor(value: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
operator fun compareTo(other: Sp): Int
Link copied to clipboard
operator fun plus(other: Sp): Sp
Link copied to clipboard
operator fun times(scalar: Float): Sp