rebase crengine with sourceforge upstream

And add lastCharMargin to eliminate truncation of synthetic italic
glyphs. This should fix #767.

And #742 should also be fixed.