Take font scale into account when determining which link user clicked.
Fix bug where link click areas on last line of document were stretched.