also fixing svg
This commit is contained in:
parent
7e6a5a0336
commit
ee12481644
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue