Try to make text not that little
This commit is contained in:
parent
acff5384b5
commit
e17d08b7e9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue