MCPcopy
hub / github.com/vercel/next.js / measure

Method measure

packages/next/src/compiled/@vercel/og/index.edge.js:18849–18856  ·  view source on GitHub ↗
(t, n, { fontSize: r, letterSpacing: i = 0 })

Source from the content-addressed store, hash-verified

18847 };
18848 }
18849 measure(t, n, { fontSize: r, letterSpacing: i = 0 }) {
18850 let o = t(n), s = this.patchFontFallbackResolver(o, t);
18851 try {
18852 return o.getAdvanceWidth(n, r, { letterSpacing: i / r });
18853 } finally {
18854 s();
18855 }
18856 }
18857 getSVG(t, n, { fontSize: r, top: i, left: o, letterSpacing: s = 0 }, a) {
18858 let u2 = t(n), f = this.patchFontFallbackResolver(u2, t);
18859 try {

Callers 15

markHydrateCompleteFunction · 0.45
markRenderCompleteFunction · 0.45
logComponentTriggerFunction · 0.45
logComponentRenderFunction · 0.45
logComponentErroredFunction · 0.45
logComponentEffectFunction · 0.45
logCommitErroredFunction · 0.45
prepareFreshStackFunction · 0.45
completeRootFunction · 0.45

Calls 3

tFunction · 0.70
sFunction · 0.70

Tested by

no test coverage detected