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

Function _ctx_font

pattern/canvas.js:2434–2440  ·  view source on GitHub ↗
(fontname, fontsize, fontweight)

Source from the content-addressed store, hash-verified

2432/*--- TEXT -----------------------------------------------------------------------------------------*/
2433
2434function _ctx_font(fontname, fontsize, fontweight) {
2435 // Wrappers for _ctx.font, only calling it when necessary.
2436 if (fontweight.length > ITALIC.length && fontweight == BOLD+ITALIC || fontweight == ITALIC+BOLD) {
2437 fontweight = ITALIC + " " + BOLD;
2438 }
2439 _ctx.font = fontweight + " " + fontsize + "px " + fontname;
2440}
2441
2442function str(v) {
2443 return v.toString();

Callers 2

textFunction · 0.85
textmetricsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…