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

Function makeCharsets

libraries/p5.js:3819–3830  ·  view source on GitHub ↗
(glyphNames, strings)

Source from the content-addressed store, hash-verified

3817}
3818
3819function makeCharsets(glyphNames, strings) {
3820 var t = new table.Table('Charsets', [
3821 {name: 'format', type: 'Card8', value: 0}
3822 ]);
3823 for (var i = 0; i < glyphNames.length; i += 1) {
3824 var glyphName = glyphNames[i];
3825 var glyphSID = encodeString(glyphName, strings);
3826 t.fields.push({name: 'glyph_' + i, type: 'SID', value: glyphSID});
3827 }
3828
3829 return t;
3830}
3831
3832function glyphToOps(glyph) {
3833 var ops = [];

Callers 1

makeCFFTableFunction · 0.85

Calls 1

encodeStringFunction · 0.85

Tested by

no test coverage detected