You can control the height of the text character drawn in the canvas with settextSize (). For example, if you want a text of height 8 pixels, you will write:
mPaint.setTextSize (8); It works quite well though, I can not find a way to set width, so an 8x12 pixel character is exactly the same as 12x12 characters. I'm using a monospace font and want to carefully control the size of each character in a canvas.
How to determine the width of the character in the character but any thoughts?
I believe the vertical height of the text Horizontal width is considered "scale". For example, if you are pulling text on the canvas using a paint, then there are methods called paint and how you can use it:
The horizontal of the paint for the text Get the scale factor [and set]
Depending on how you are using the canvas it can be the ways you can use - the actual letter itself Modification of size Instead of most other forms of text with spacing of horizontal text
Comments
Post a Comment