Merge pull request #222 from chrox/master

use docToWindowPoint to transform document rect to screen rect
fix lastCharMargin of hyphenated word eats spacing after that word