MCPcopy Index your code
hub / github.com/clips/pattern / textwidth

Function textwidth

pattern/canvas.js:2479–2483  ·  view source on GitHub ↗
(str, options)

Source from the content-addressed store, hash-verified

2477}
2478
2479function textwidth(str, options) {
2480 /* Returns the width of the given text.
2481 */
2482 return textmetrics(str, options)[0];
2483}
2484
2485function textheight(str, options) {
2486 /* Returns the height of the given text.

Callers

nothing calls this directly

Calls 1

textmetricsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…