improved text-decoration: overline accuracy

This commit is contained in:
Niklas von Hertzen
2012-12-30 16:46:31 +02:00
parent b19c200c6c
commit ba9ace71ba
2 changed files with 2 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ _html2canvas.Parse = function (images, options) {
renderRect(ctx, bounds.left, Math.round(bounds.top + metrics.baseline + metrics.lineWidth), bounds.width, 1, color);
break;
case "overline":
renderRect(ctx, bounds.left, bounds.top, bounds.width, 1, color);
renderRect(ctx, bounds.left, Math.round(bounds.top), bounds.width, 1, color);
break;
case "line-through":
// TODO try and find exact position for line-through