Add a context fontHeight getter
This commit is contained in:
parent
e611489b86
commit
00ed7b79c0
@ -606,6 +606,10 @@ func (dc *Context) LoadFontFace(path string, points float64) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (dc *Context) FontHeight() float64 {
|
||||
return dc.fontHeight
|
||||
}
|
||||
|
||||
func (dc *Context) drawString(im *image.RGBA, s string, x, y float64) {
|
||||
d := &font.Drawer{
|
||||
Dst: im,
|
||||
|
Loading…
Reference in New Issue
Block a user