Fixes gidStart for CID fonts

Fixes #3857
Fixes #3912