From dcb6c3740d17f471291055a9a8f9a59912e66d81 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Wed, 29 Apr 2020 12:09:05 -0400 Subject: [PATCH] meme: change fonts --- plugins/meme/meme.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/meme/meme.go b/plugins/meme/meme.go index 1a5e025..b4b1bd4 100644 --- a/plugins/meme/meme.go +++ b/plugins/meme/meme.go @@ -161,7 +161,7 @@ var defaultFormats = map[string]string{ } func (p *MemePlugin) genMeme(meme, top, bottom string) string { - fontSizes := []float64{96, 48, 24, 12} + fontSizes := []float64{48, 36, 24, 16, 12} fontSize := fontSizes[0] formats := p.c.GetMap("meme.memes", defaultFormats) @@ -213,7 +213,8 @@ func (p *MemePlugin) genMeme(meme, top, bottom string) string { } x := float64(w/2 + dx) y := float64(h) - fontSize + float64(dy) - m.DrawStringAnchored(top, x, fontSize, 0.5, 0.5) + y0 := fontSize + float64(dy) + m.DrawStringAnchored(top, x, y0, 0.5, 0.5) m.DrawStringAnchored(bottom, x, y, 0.5, 0.5) } }