MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / loadSync

Function loadSync

libraries/p5.js:2430–2434  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

2428// Syncronously load the font from a URL or file.
2429// When done, return the font object or throw an error.
2430function loadSync(url) {
2431 var fs = _dereq_('fs');
2432 var buffer = fs.readFileSync(url);
2433 return parseBuffer(toArrayBuffer(buffer));
2434}
2435
2436exports._parse = parse;
2437exports.Font = _font.Font;

Callers

nothing calls this directly

Calls 2

parseBufferFunction · 0.85
toArrayBufferFunction · 0.85

Tested by

no test coverage detected