Skip to content

Commit dfc7b01

Browse files
committed
Japanese
1 parent e3242ce commit dfc7b01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/InitialAvatar.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ private function getFontByScript()
411411
return __DIR__.'/fonts/script/Noto-CJKJP-Regular.otf';
412412
}
413413

414+
if (StringScript::isJapanese($this->getInitials())) {
415+
return __DIR__.'/fonts/script/Noto-CJKJP-Regular.otf';
416+
}
417+
414418
return $this->getParameterFontFile();
415419
}
416420
}

0 commit comments

Comments
 (0)