replace gc.scale with gc.Current.Scale

This commit is contained in:
Stani 2015-07-01 01:37:19 +02:00
parent 0acdcf4fff
commit 225f790d40
1 changed files with 2 additions and 2 deletions

View File

@ -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