hookshy Well-Known Member Licensed User Longtime User Oct 5, 2014 #1 Jstring utils miss the measure text method . Do I have other options to deal with drawn texts over canvas .... I found that I can draw text on midle of the canvas by set "CENTER" property... I do not know to put the text to midle of a rectangular ...because I do not know how to measure the text width related to text font .Centering a text on a canvas like label does seem to be hard enough. I do miss options on canvas library ..it is just a wish !
Jstring utils miss the measure text method . Do I have other options to deal with drawn texts over canvas .... I found that I can draw text on midle of the canvas by set "CENTER" property... I do not know to put the text to midle of a rectangular ...because I do not know how to measure the text width related to text font .Centering a text on a canvas like label does seem to be hard enough. I do miss options on canvas library ..it is just a wish !
Erel B4X founder Staff member Licensed User Longtime User Oct 5, 2014 #2 You can set the label width to -1. The label will be resized automatically based on its content. Upvote 0