From 225f790d4084401a9c930d36ee8ed9af478489b9 Mon Sep 17 00:00:00 2001 From: Stani Date: Wed, 1 Jul 2015 01:37:19 +0200 Subject: [PATCH] replace gc.scale with gc.Current.Scale --- pdf2d/graphiccontext.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf2d/graphiccontext.go b/pdf2d/graphiccontext.go index fa1a2df..66fa6cc 100644 --- a/pdf2d/graphiccontext.go +++ b/pdf2d/graphiccontext.go @@ -237,11 +237,11 @@ func (gc *GraphicContext) SetFontData(fontData draw2d.FontData) { } // SetFontSize sets the font size in points (as in ``a 12 point font''). -// TODO: resolve this with ImgGraphicContext (now done with gc.scale) +// TODO: resolve this with ImgGraphicContext (now done with gc.Current.Scale) func (gc *GraphicContext) SetFontSize(fontSize float64) { gc.StackGraphicContext.SetFontSize(fontSize) gc.recalc() - gc.pdf.SetFontSize(fontSize * gc.scale) + gc.pdf.SetFontSize(fontSize * gc.Current.Scale) } // SetLineWidth sets the line width