From ca4ba5229a7680b379d0410f1e8e3766709082de Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 20 Jun 2016 17:52:06 +0200 Subject: [PATCH] It was --- mods/memegen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/memegen.go b/mods/memegen.go index 54b4c71..139f6f9 100644 --- a/mods/memegen.go +++ b/mods/memegen.go @@ -134,8 +134,8 @@ func memegen(broker *tg.Broker, update tg.APIMessage) { iter := 0 for width > iwidth && iter < 10 { log.Println("Warning, resizing!") - left, top, right, bottom = gc.GetStringBounds(texts[longid]) gc.SetFontSize(scale * (0.8 - 0.1*float64(iter))) + left, top, right, bottom = gc.GetStringBounds(texts[longid]) width = right - left iter++ }