[Processing] 怎麼知道字串的寬度跟高度?




寬度的話,使用textWidth()可以取得.

高度的話,應該等於 textAscent() + textDescent().

參考資料:




Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.