gitmyhub

Sarasa-Gothic

JavaScript ★ 12k updated 1d ago

Sarasa Gothic / 更纱黑体 / 更紗黑體 / 更紗ゴシック / 사라사 고딕

Sarasa Gothic is an open-source font family that combines Latin and CJK (Chinese, Japanese, Korean) characters in a consistent style, with monospace variants tailored for coding environments.

JavaScriptNode.jssetup: easycomplexity 2/5

Sarasa Gothic is a font family designed to display Latin, Greek, Cyrillic, and CJK (Chinese, Japanese, and Korean) characters together in a consistent and readable way. CJK scripts and Latin letters are traditionally designed separately and often look mismatched when mixed in the same line of text. This font solves that by combining three existing open-source typefaces: Inter for Latin and related scripts, Iosevka for a monospace coding version, and Source Han Sans for the Chinese, Japanese, and Korean characters.

The font comes in several named variants. The Gothic and UI variants use Inter for Latin characters, with the difference being how quotation marks are sized (full-width or narrow). The Mono, Term, and Fixed variants use Iosevka, which is a monospace font suited to coding environments, with variations in how dashes and ligatures are handled. Each variant is also available in different regional orthographies, covering simplified Chinese, traditional Chinese, Japanese, Korean, Hong Kong Chinese, and a classical style.

The repository contains the build tooling to generate the font files from source. Building requires Node.js, a set of Adobe font development tools called AFDKO, and a hinting tool called ttfautohint. Running the build produces TTF files (a standard font format) or TTC files (a container that bundles multiple related fonts together). The README notes that building TTC files requires significant memory due to the large number of variant combinations.

The README recommends removing any previously installed version of the font before updating, as some operating systems can have trouble caching updates to large font packages. Pre-built font files are available for download from the GitHub releases page and from mirror servers in China.

Where it fits