If I display a string in a custom field using drawtext(txt,ax,ay) method, how can I calculate the string width / height.
If I display a string in a custom field using drawtext(txt,ax,ay) method, how can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Width:
Height:
Those are if you’re making the calls from within one of your
Field‘s methods (meaning you haveextended aField). However, if you’re simply trying to draw the string and are wondering whataxandayrepresent, those are positions, not dimensions.