Interface: TextTransform
Experimental
How text and size change for a font's textcase and variant (see resolveTextTransform).
Properties
| Property | Type | Description |
|---|---|---|
identity | boolean | Experimental Whether transform is the identity and sizeScale is 1. |
sizeScale | number | Experimental Multiplies the font size. |
Methods
transform()
ts
transform(text): string;Experimental
Maps the source text to the drawn text. Idempotent: applying it twice changes nothing.
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
string