From 1ce5f5556f94d5f574f2d2d52ca6c77a78bba6ae Mon Sep 17 00:00:00 2001 From: Bayu Hendra Date: Wed, 10 Aug 2016 11:20:04 +0700 Subject: [PATCH] fix #26 --- src/Avatar.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Avatar.php b/src/Avatar.php index 2be2477..fd0fe0d 100644 --- a/src/Avatar.php +++ b/src/Avatar.php @@ -177,6 +177,8 @@ protected function getRandomForeground() protected function setRandomFont() { + $this->font = $this->defaultFont; + $initials = $this->getInitial(); if ($initials) { @@ -197,7 +199,6 @@ protected function setRandomFont() } } - $this->font = $this->defaultFont; } protected function getBorderColor()