Merge pull request #31 from magneticcoffee/get-dc-fontheight

Add a context fontHeight getter
This commit is contained in:
Michael Fogleman 2018-02-08 12:06:39 -05:00 committed by GitHub
commit c828b09e4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -606,6 +606,10 @@ func (dc *Context) LoadFontFace(path string, points float64) error {
return err return err
} }
func (dc *Context) FontHeight() float64 {
return dc.fontHeight
}
func (dc *Context) drawString(im *image.RGBA, s string, x, y float64) { func (dc *Context) drawString(im *image.RGBA, s string, x, y float64) {
d := &font.Drawer{ d := &font.Drawer{
Dst: im, Dst: im,