typesetsh / font-noto-cjk-sub
Google Noto CJK Substitute package for smaller package size
Installs: 14 366
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.4.0
Replaces
- typesetsh/font-noto-cjk: *
README
Noto CJK Substitute package for smaller package size.
If the CJK font files take up too much space for your deployment, and you don't require them you can use this package to remove them.
Install
Make sure you use a typeset.sh version >= 0.23
.
Then install thise package, it will replace the CJK package.
composer require typesetsh/font-noto-cjk-sub
Optional
If you still want to support the CJK font set, you can do so by placing the fonts (NotoSansCJKsc-*.otf) files somewhere on your project and add the path to the FontSelector using php.
FontSelector::$fontDirs[] = '/var/fonts/NotoSans';