worked without scaling!!
This commit is contained in:
parent
7cb416041d
commit
cb5c2df263
3 changed files with 53 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue