Skip to content

Commit

Permalink
Set default font in LarvatarTrait
Browse files Browse the repository at this point in the history
A line of code has been added to set the default font to 'Roboto' in the LarvatarTrait. This change occurs during the creation of a new Larvatar object, ensuring all images generated using this trait now utilize the 'Roboto' font.
  • Loading branch information
renfordt committed Apr 11, 2024
1 parent a7cfaa3 commit af1ea94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Traits/LarvatarTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function getAvatar(string $name, string $email = '', int $size = 100, Lar
{
$larvatar = new Larvatar($name, $email, $type);
$larvatar->setSize($size);
$larvatar->setFont('Roboto', '/font/Roboto-Bold.ttf');
return $larvatar->getImageHTML($encoding);
}
}

0 comments on commit af1ea94

Please sign in to comment.