Fixes reading of the widths for CID fonts
Tests for issue 2627
Merge pull request #2630 from yurydelendik/width-cid

Fixes reading of the widths for CID fonts