I want to know if there is any way to modify text height and width separately when drawing with canvas. To set text size you can simply do paint.setTextSize(x);but it change text size in X and Y and I need to change text size in X and Y separately as you do with paint.setTextScaleX(x);but there isn’t anything like paint.setTextScaleY(y);.
Is any way to implement this or does it already exists in Android ?
Thank you
There is no
setTextScaleYmethod, because there is no need for one.setTextSizemultiplies both X and Y scale factors, andsetTextScaleXmultiplies the X scale factor only. So you could reach any desired scalingscaleX,scaleYthis way: