draw.Drawing.text
draw.Drawing: D = text (D, P, S)
draw.Drawing: D = text (D, P, S, H)
draw.Drawing: D = text (D, P, S, H, ROT)
Append the single-line text S with its insertion point at P.
P is an N-by-2 matrix in millimetres, one text per row; zero rows append nothing. S is one character vector for every row or a cell array of one per row, and H and ROT are each one value or a vector of one per row:
D = draw.Drawing ().text ([0, 0; 0, 10], {'A', 'B'});
|
H is the cap height in millimetres and defaults to 2.5, the smallest of the ISO 3098 sizes and the usual height for notes on a drawing at 1:50. ROT rotates the text about its insertion point, in degrees counter-clockwise, and defaults to zero.
The text is stored as given. No backend measures it, so a drawing knows where its text starts but not how wide it ends up.
Source Code: draw.Drawing