* fix crash
parent
39c635ea47
commit
3e21f4d1d1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue