I'm using jcanvas and I need to resize text by width and height. Actually the library offers an option to scale by X and Y but I need to do the same with the width and height properties.
Is it possible?
I'm using jcanvas and I need to resize text by width and height. Actually the library offers an option to scale by X and Y but I need to do the same with the width and height properties.
Is it possible?
Copyright © 2021 Jogjafile Inc.
The only way to resize text in jCanvas is with the
scaleX
,scaleY
, orscale
property. Thewidth
andheight
properties (for text drawings) are read-only, so you can't change them yourself.