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

Function cffGlyphLoader

libraries/p5.js:2185–2197  ·  view source on GitHub ↗
(font, index, parseCFFCharstring, charstring)

Source from the content-addressed store, hash-verified

2183}
2184
2185function cffGlyphLoader(font, index, parseCFFCharstring, charstring) {
2186 return function() {
2187 var glyph = new _glyph.Glyph({index: index, font: font});
2188
2189 glyph.path = function() {
2190 var path = parseCFFCharstring(font, glyph, charstring);
2191 path.unitsPerEm = font.unitsPerEm;
2192 return path;
2193 };
2194
2195 return glyph;
2196 };
2197}
2198
2199exports.GlyphSet = GlyphSet;
2200exports.glyphLoader = glyphLoader;

Callers

nothing calls this directly

Calls 1

parseCFFCharstringFunction · 0.85

Tested by

no test coverage detected