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
1 changed files with 1 additions and 1 deletions

View File

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