Bump to OPENRNDR 0.3.43-rc.5

This commit is contained in:
Edwin Jakobs
2020-05-30 10:36:47 +02:00
parent ad50913758
commit 20d364ae32
9 changed files with 111 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ class FontManager {
fun font(cs: StyleSheet): FontImageMap {
val fontUrl = resolve(cs.fontFamily) ?: "cp:fonts/Roboto-Medium.ttf"
val fontSize = (cs.fontSize as? LinearDimension.PX)?.value ?: 16.0
return FontImageMap.fromUrl(fontUrl, fontSize, contentScale)
return FontImageMap.fromUrl(fontUrl, fontSize, contentScale = contentScale)
}
fun register(name: String, url: String) {