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

@ -149,8 +149,7 @@ func (rgc *RasterGraphicContext) CreateStringPath(s string, x, y float64) (curso
return
}
// GetStringBounds returns the approximate points bounds of a string.
// It will be required to convert points to pixels for measurement.
// GetStringBounds returns the approximate pixel bounds of a string.
func (rgc *RasterGraphicContext) GetStringBounds(s string) (left, top, right, bottom float64, err error) {
f := rgc.GetFont()
if f == nil {