From 00ed7b79c089b6c2ce796735298ba15e3e602202 Mon Sep 17 00:00:00 2001 From: Alexander Kahl Date: Tue, 31 Oct 2017 16:09:26 +0100 Subject: [PATCH] Add a context fontHeight getter --- context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/context.go b/context.go index e828af8..edcf63e 100644 --- a/context.go +++ b/context.go @@ -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,