Skip to content

Latest commit

 

History

History
91 lines (53 loc) · 5.98 KB

README_EN.md

File metadata and controls

91 lines (53 loc) · 5.98 KB

简体中文

Source Han TrueType

TrueType Version of Source Han Sans, Source Han Serif and Source Han Mono

Adobe-branded Source Han Sans, Source Han Serif, and Source Han Mono are open source Pan-CJK typefaces whose OpenType/CFF fonts and CID-based sources are covered under the terms of the SIL Open Font License (also see the FAQ).

This project provides the lossless TrueType version of all Source Han fonts, without any change of curve accuracy, metrics and functionality. In general, TrueType format presents better compatibility than OpenType/CFF (OTF) on Microsoft Windows, Microsoft Office and front-end web applications. All TrueType fonts released by this project are interchangeable with the OTF version, therefore documents using OTF will not need to revise.

3rd-Party Project

Although the TTF release of this repo represents the same font design and functionality as the OTF format, this repo is a 3rd-party project and not published by Adobe. The fonts published here also comply with the SIL Open Font License, allowing free commercial use.

Download and Installation

Please visit the release page to get latest ZIP files containing all TTF/TTC fonts. Clicking "Code" button on this page will only download code and source files instead of the final build.

  • macOS
  • Linux
  • Windows
  • Attention for Windows users: since update 1809, Windows 10 by default installs font files under user folder instead of Windows\fonts, which leads to the missing font issue on some applications. It is recommended to right-click the font files and choose "Install for all users" to install the fonts globally.

Specification

  • OpenType features including vertical writing support: all included
  • Microsoft Office style link: the Bold button (B) links Regular and Bold weight
  • Microsoft Office font embedding: full supported on Word, Excel, PowerPoint, etc.
  • Font container format: TrueType Collection (TTC) for language-specific version and TrueType (TTF) for region-specific version
  • Curve format: quadratic Bézier curve
  • Units-per-em (UPM): 2048, i.e. lossless conversion from the OpenType/CFF source
  • Render strategy: full-range subpixel anti-aliasing (since Windows 10)

Variable Fonts

The Adobe official repo has provided TrueType version of variable Source Han Sans and Source Han Serif. Please visit their release page to download.

Overlarge Line Height Concern on Adobe Applications

The overlarge line height issue on Adobe applications such as Photoshop and Illustrator is caused by the shape of "3 em vertical dash" glyph from the OTF version. The global font box is overly set to accommodate this glyph. Given the use case of full OTF interchangeability, this project will not change such design. To fix, please visit Dream Han CJK, a Source-Han-inspired open source font project providing more features and up to 27 weights.

Compilation

To reproduce the font conversion process locally, please refer to the following guidance.

Disk Space

~ 5 GB temporary files will be generated. Plus the final ZIP files there will be in total 6 GB disk space used. Temporary files will be auto deleted at the end of the process.

Dependency

Windows Subsystem for Linux (WSL), Linux x86-64 with Wine and macOS platform are all supported. Please make sure the following dependencies have properly set up:

OTF Source File

To save space, this repo does not bundle with the OTF source files. Please visit the Source Han official repos, download and put all OTF files in the 3 sub folders, respectively:

Build Fonts

  • WSL: cd into the script folder and execute ./build_ttfs.sh wsl <maximum parallel jobs> Linux: cd into the script folder and execute ./build_ttfs.sh linux <maximum parallel jobs>
  • macOS: cd into the script folder and execute ./build_ttfs.sh mac <maximum parallel jobs>
  • The maximum parallel jobs decides the maximum number of fonts processed in parallel. Each font will take ~ 1.5 CPU threads and up to 600 MB memory. Please choose the best number for your machine. For example, AMD Ryzen 9 3950X is good at 28, taking up to 97% CPU usage, given enough memory.
  • After the script, the final ZIP files will be located at new-created release folder. All temporary files will be auto deleted once the script is done.

More Information

For information about design, usage and more of Source Han fonts, please refer to the following official repos: