Tunji Dahunsi
07/06/2022, 4:02 AMfun Font(
identity: String,
data: ByteArray,
weight: FontWeight = FontWeight.Normal,
style: FontStyle = FontStyle.Normal
): Font = LoadedFont(identity, data, weight, style)
However I’m unsure how to create the the ByteArray
for the data
argument. The required .tff
file is in resources, but I’m not sure what API to use to actually read it in js for the browser.jeran
10/07/2022, 2:59 PMTunji Dahunsi
10/07/2022, 3:02 PMjeran
10/07/2022, 3:03 PMjeran
10/07/2022, 3:03 PM