use docToWindowPoint to transform document rect to screen rect
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
Merge pull request #223 from chrox/master

fix lastCharMargin of hyphenated word eats spacing after that word