foliojs / fontkit

An advanced font engine for Node and the browser
1.49k stars 219 forks source link

Keep stringIndex for default ignorables glyphs #157

Closed diegomura closed 6 years ago

diegomura commented 6 years ago

Instead of fully replacing the glyph with the new space glyph instance, we just edit the id reference (which will produce the same glyph after all when getGlyph is called) but we keep the stringIndex glyph attribute, now needed in here to return it with the GlyphRun.

This is supposed to be merged to the string-index branch, which is still experimental @devongovett