rocinantealpha

reference / text

measure

How big a text is in the current font, as a vector of its width and height.

background 250font "Inter" size 40box = measure "measure"fill goldrect at 30 80 size boxfill 30text "measure" at 30 80
what it draws: the whole window, 400 by 300
What the example of measure draws

How to write it

measure text

Gives vector.

Related