Try to make text not that little

This commit is contained in:
Hamcha 2016-06-21 21:30:10 +02:00
parent acff5384b5
commit e17d08b7e9

View file

@ -133,7 +133,7 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) {
iter := 0 iter := 0
for width*1.2 > iwidth && iter < 10 { for width*1.2 > iwidth && iter < 10 {
log.Println("Warning, resizing!") log.Println("Warning, resizing!")
scale *= (0.9 - 0.1*float64(iter)) scale *= (0.9 - 0.05*float64(iter))
gc.SetFontSize(scale) gc.SetFontSize(scale)
left, top, right, bottom = gc.GetStringBounds(texts[longid]) left, top, right, bottom = gc.GetStringBounds(texts[longid])
width = right - left width = right - left