makeCharsets function
dynamic
makeCharsets(
- dynamic glyphNames,
- dynamic strings
Implementation
makeCharsets(glyphNames, strings) {
var t = Record('Charsets', [
{"name": 'format', "type": 'Card8', "value": 0}
], null);
for (var i = 0; i < glyphNames.length; i += 1) {
var glyphName = glyphNames[i];
var glyphSID = encodeString(glyphName, strings);
t.fields.push({"name": 'glyph_${i}', "type": 'SID', "value": glyphSID});
}
return t;
}