Skip to content

Commit e3242ce

Browse files
committed
Chinese
1 parent f670098 commit e3242ce

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ Supported:
161161
* Georgian
162162
* Hebrew
163163
* Mongolian
164+
* Chinese
164165
* Thai
165166
* Tibetan
166167

src/InitialAvatar.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ private function getFontByScript()
407407
return __DIR__.'/fonts/script/Noto-Tibetan-Regular.ttf';
408408
}
409409

410+
if (StringScript::isChinese($this->getInitials())) {
411+
return __DIR__.'/fonts/script/Noto-CJKJP-Regular.otf';
412+
}
413+
410414
return $this->getParameterFontFile();
411415
}
412416
}
15.7 MB
Binary file not shown.

0 commit comments

Comments
 (0)