makeNameIndex function
dynamic
makeNameIndex(
- dynamic fontNames
Implementation
makeNameIndex(fontNames) {
var t = Record('Name INDEX', [
{"name": 'names', "type": 'INDEX', "value": []}
], null);
t.names = [];
for (var i = 0; i < fontNames.length; i += 1) {
t.names.push({"name": 'name_${i}', "type": 'NAME', "value": fontNames[i]});
}
return t;
}