worked without scaling!!

This commit is contained in:
Will Charczuk 2016-07-10 23:55:57 -07:00
parent 7cb416041d
commit cb5c2df263
3 changed files with 53 additions and 6 deletions

View file

@ -132,10 +132,8 @@ func (rr *rasterRenderer) MeasureText(body string) (width int, height int) {
if err != nil {
return
}
dw := r - l
dh := b - t
width = int(drawing.PointsToPixels(rr.gc.GetDPI(), dw))
height = int(drawing.PointsToPixels(rr.gc.GetDPI(), dh))
width = int(r - l)
height = int(b - t)
return
}