also fixing svg

This commit is contained in:
Will Charczuk 2016-07-11 00:23:31 -07:00
parent 7e6a5a0336
commit ee12481644

View File

@ -143,7 +143,7 @@ func (vr *vectorRenderer) MeasureText(body string) (width, height int) {
}
w := vr.fc.MeasureString(body).Ceil()
width = int(drawing.PointsToPixels(vr.dpi, float64(w)))
width = w
height = int(drawing.PointsToPixels(vr.dpi, vr.s.FontSize))
}
return