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

Function makeNameIndex

libraries/p5.js:3753–3763  ·  view source on GitHub ↗
(fontNames)

Source from the content-addressed store, hash-verified

3751}
3752
3753function makeNameIndex(fontNames) {
3754 var t = new table.Table('Name INDEX', [
3755 {name: 'names', type: 'INDEX', value: []}
3756 ]);
3757 t.names = [];
3758 for (var i = 0; i < fontNames.length; i += 1) {
3759 t.names.push({name: 'name_' + i, type: 'NAME', value: fontNames[i]});
3760 }
3761
3762 return t;
3763}
3764
3765// Given a dictionary's metadata, create a DICT structure.
3766function makeDict(meta, attrs, strings) {

Callers 1

makeCFFTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected