withSize
actual fun withSize(width: Int, height: Int): TextTextureImageSourceBuilder
Content copied to clipboard
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
Content copied to clipboard
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.