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

Function makeCharStringsIndex

libraries/p5.js:3901–3913  ·  view source on GitHub ↗
(glyphs)

Source from the content-addressed store, hash-verified

3899}
3900
3901function makeCharStringsIndex(glyphs) {
3902 var t = new table.Table('CharStrings INDEX', [
3903 {name: 'charStrings', type: 'INDEX', value: []}
3904 ]);
3905
3906 for (var i = 0; i < glyphs.length; i += 1) {
3907 var glyph = glyphs.get(i);
3908 var ops = glyphToOps(glyph);
3909 t.charStrings.push({name: glyph.name, type: 'CHARSTRING', value: ops});
3910 }
3911
3912 return t;
3913}
3914
3915function makePrivateDict(attrs, strings) {
3916 var t = new table.Table('Private DICT', [

Callers 1

makeCFFTableFunction · 0.85

Calls 1

glyphToOpsFunction · 0.85

Tested by

no test coverage detected