shaper: fix nasty sign bug in font functions

Fixes issue #68.