(glyphNames, strings)
| 3817 | } |
| 3818 | |
| 3819 | function 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 | |
| 3832 | function glyphToOps(glyph) { |
| 3833 | var ops = []; |
no test coverage detected