also fixing svg
This commit is contained in:
parent
7e6a5a0336
commit
ee12481644
|
@ -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 New Issue
Block a user