How do I set the font characteristics before calling rsgDrawText? I’m specifically interested in being able to set the font size.
How do I set the font characteristics before calling rsgDrawText? I’m specifically interested in
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.
Its a multi-part process. In the file you use to control the RenderScript runtime (the one which owns the script usually) do the following after initializing the script but before binding it:
Then in the RenderScript file have a global variable (in this case gFontSans) and call:
Sometime before you draw the text you want. If you need different sizes you need to have them stored as separate variables, or an array.