Box returns the bounding box of the given non-multiline text where: - width is the horizontal space from the origin. - height is the vertical space above the baseline. - depth is the vertical space below the baseline, a positive number.
(txt string, fnt font.Font)
| 28 | // - height is the vertical space above the baseline. |
| 29 | // - depth is the vertical space below the baseline, a positive number. |
| 30 | Box(txt string, fnt font.Font) (width, height, depth vg.Length) |
| 31 | |
| 32 | // Draw renders the given text with the provided style and position |
| 33 | // on the canvas. |
no outgoing calls