withSize

actual fun withSize(width: Int, height: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given width and height.

If either width or height is 0, the dimension of the resulting texture will be adjusted to wrap the text with padding.

expect fun withSize(width: Int = 0, height: Int = 0): TextTextureImageSourceBuilder

Will build a texture source containing text with given width and height.

If either width or height is 0, the dimension of the resulting texture will be adjusted to wrap the text with padding.

actual fun withSize(width: Int, height: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given width and height.

If either width or height is 0, the dimension of the resulting texture will be adjusted to wrap the text with padding.