From 62489c0504a01845b0ca93226510571c6008aa85 Mon Sep 17 00:00:00 2001 From: rpo Date: Tue, 11 Jun 2019 19:20:58 +0200 Subject: [PATCH] Fix SetFontFace method to be inline with LoadFontFace --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 2ca48a8..e8c546c 100644 --- a/context.go +++ b/context.go @@ -683,7 +683,7 @@ func (dc *Context) DrawImageAnchored(im image.Image, x, y int, ax, ay float64) { func (dc *Context) SetFontFace(fontFace font.Face) { dc.fontFace = fontFace - dc.fontHeight = float64(fontFace.Metrics().Height) / 64 + dc.fontHeight = (float64(fontFace.Metrics().Height) / 64) * 72 / 96 } func (dc *Context) LoadFontFace(path string, points float64) error {