Rewrite copyRange to handle each glyph individually. This makes the processing slower, but allows to ignore empty glyphs.