* fix crash

pull/1/head
Dominika Liberda 2022-10-12 18:39:15 +02:00
parent 39c635ea47
commit 3e21f4d1d1
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ func (m *Metadata) TextSlots(bounds image.Rectangle) (slots []*meme.TextSlot) {
if slot.Font != "" {
textSlot.Font = fonts[slot.Font]
} else {
textSlot.Font = fonts["Impact"]
textSlot.Font = fonts["impact"]
textSlot.TextColor = color.White
textSlot.OutlineColor = color.Black
textSlot.AllUppercase = true
@ -85,14 +85,14 @@ func (m *Metadata) TextSlots(bounds image.Rectangle) (slots []*meme.TextSlot) {
return []*meme.TextSlot{
{
Bounds: image.Rect(padding, padding, bounds.Dx()-padding, bounds.Dy()/4),
Font: fonts["Impact"],
Font: fonts["impact"],
TextColor: color.White,
OutlineColor: color.Black,
AllUppercase: true,
},
{
Bounds: image.Rect(padding, bounds.Dy()*3/4, bounds.Dx()-padding, bounds.Dy()-padding),
Font: fonts["Impact"],
Font: fonts["impact"],
TextColor: color.White,
OutlineColor: color.Black,
AllUppercase: true,