Add a context fontHeight getter

This commit is contained in:
Alexander Kahl 2017-10-31 16:09:26 +01:00
parent e611489b86
commit 00ed7b79c0

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,