(font, index, parseCFFCharstring, charstring)
| 2183 | } |
| 2184 | |
| 2185 | function cffGlyphLoader(font, index, parseCFFCharstring, charstring) { |
| 2186 | return function() { |
| 2187 | var glyph = new _glyph.Glyph({index: index, font: font}); |
| 2188 | |
| 2189 | glyph.path = function() { |
| 2190 | var path = parseCFFCharstring(font, glyph, charstring); |
| 2191 | path.unitsPerEm = font.unitsPerEm; |
| 2192 | return path; |
| 2193 | }; |
| 2194 | |
| 2195 | return glyph; |
| 2196 | }; |
| 2197 | } |
| 2198 | |
| 2199 | exports.GlyphSet = GlyphSet; |
| 2200 | exports.glyphLoader = glyphLoader; |
nothing calls this directly
no test coverage detected