License and usage rights
mainThe Dream Han CJK font series is released under the SIL Open Font License (OFL).
- Commercial use: Free.
- Modification: You may modify the font files.
- Attribution: Please credit the original author when redistributing.
repository·main·Indexed 22 days ago
https://github.com/pal3love/dream-han-cjkA font project that instantiates variable Source Han Sans and Source Han Serif fonts into 27 discrete, compatible weights. It features custom interpolation algorithms for natural weight transitions, fixes Adobe line-height issues, and supports Simplified Chinese, Traditional Chinese, Japanese, and Korean. Available in TTC and TTF formats under the SIL Open Font License.
The Dream Han CJK font series is released under the SIL Open Font License (OFL).
The project uses the variable weight axis (wght) of Source Han Sans and Source Han Serif as a base, but applies custom interpolation to bypass the avar table (which causes non-linear weight increases in Adobe's variable fonts) and to account for the different visual thickening speeds of Sans vs. Serif fonts.
19.4 + f^2, where f starts at 1 and increases by 0.1 per step, until 900, resulting in 27 weights.Note: Because the avar table is bypassed, the wght values in Dream Han CJK are not identical to the values in the original Source variable fonts. Users should compare them visually to find the closest match.
To compile the fonts locally, follow these requirements and steps.
Disk Space: Running the script generates significant temporary files. You will need approximately 30 GB of total disk space. Temporary files are automatically deleted upon completion.
Platform Dependencies: Supports WSL (Windows Subsystem for Linux), Linux x86-64 (with Wine), and macOS. Ensure the following are installed:
pippip install afdko (Adobe Font Development Kit for OpenType)pip install skia-pathopspip install fonttoolspip install tomlzip (via package manager, e.g., sudo apt install zip for WSL/Linux; macOS has it built-in)Navigate to the script directory and run the build script using the following syntax:
./build_fonts.sh wsl <max_parallel_count>./build_fonts.sh linux <max_parallel_count>./build_fonts.sh mac <max_parallel_count>Parameter: <max_parallel_count>
Determines the maximum number of fonts processed in parallel. Each font consumes approximately 1.5 CPU threads and up to 1.5 GB of RAM. Adjust this based on your hardware (e.g., for an AMD Ryzen 9 3950X, a value of 28 is suggested).
Upon completion, the final font ZIP package will be located in a newly created release directory in the root folder.
To use the fonts, download the latest compressed package from the Releases page. After extracting, you will find TTF/TTC font files.
Note for Windows users: Since Windows 10 1809, fonts may be installed to a user folder by default, which can cause some software to fail to find them. It is recommended to right-click the font file and select "Install for all users" to perform a global installation.
Dream Han CJK is an instantiation of the variable Source Han Sans/Serif fonts into traditional single-weight fonts to improve compatibility and fix rendering issues.
Key specifications:
Style-Link (Bold button links to W12/W22 for Sans and W7/W20 for Serif).