├── .gitignore ├── LICENSE.txt ├── README.md ├── README_EN.md ├── binary ├── otrebuild_mac └── otrebuild_win.exe ├── release ├── 2.004-2.001-1.002-R │ ├── README.md │ └── README_EN.md ├── 2.004-2.002-1.002-R │ ├── README.md │ └── README_EN.md └── 2.004-2.003-1.002-R │ ├── README.md │ └── README_EN.md ├── script └── build_ttfs.sh └── source ├── source-han-mono └── README.txt ├── source-han-sans └── README.txt └── source-han-serif └── README.txt /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | bfg.jar 3 | release/*.zip 4 | temp 5 | source/source-han-mono/* 6 | !source/source-han-mono/README.txt 7 | source/source-han-sans/* 8 | !source/source-han-sans/README.txt 9 | source/source-han-serif/* 10 | !source/source-han-serif/README.txt 11 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | RESERVED FONT NAME 'SOURCE' 2 | Source is a trademark of Adobe (http://www.adobe.com/) in the United 3 | States and/or other countries. 4 | 5 | This Font Software is licensed under the SIL Open Font License, 6 | Version 1.1. 7 | 8 | This license is copied below, and is also available with a FAQ at: 9 | http://scripts.sil.org/OFL 10 | 11 | ----------------------------------------------------------- 12 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 13 | ----------------------------------------------------------- 14 | 15 | PREAMBLE 16 | The goals of the Open Font License (OFL) are to stimulate worldwide 17 | development of collaborative font projects, to support the font 18 | creation efforts of academic and linguistic communities, and to 19 | provide a free and open framework in which fonts may be shared and 20 | improved in partnership with others. 21 | 22 | The OFL allows the licensed fonts to be used, studied, modified and 23 | redistributed freely as long as they are not sold by themselves. The 24 | fonts, including any derivative works, can be bundled, embedded, 25 | redistributed and/or sold with any software provided that any reserved 26 | names are not used by derivative works. The fonts and derivatives, 27 | however, cannot be released under any other type of license. The 28 | requirement for fonts to remain under this license does not apply to 29 | any document created using the fonts or their derivatives. 30 | 31 | DEFINITIONS 32 | "Font Software" refers to the set of files released by the Copyright 33 | Holder(s) under this license and clearly marked as such. This may 34 | include source files, build scripts and documentation. 35 | 36 | "Reserved Font Name" refers to any names specified as such after the 37 | copyright statement(s). 38 | 39 | "Original Version" refers to the collection of Font Software 40 | components as distributed by the Copyright Holder(s). 41 | 42 | "Modified Version" refers to any derivative made by adding to, 43 | deleting, or substituting -- in part or in whole -- any of the 44 | components of the Original Version, by changing formats or by porting 45 | the Font Software to a new environment. 46 | 47 | "Author" refers to any designer, engineer, programmer, technical 48 | writer or other person who contributed to the Font Software. 49 | 50 | PERMISSION & CONDITIONS 51 | Permission is hereby granted, free of charge, to any person obtaining 52 | a copy of the Font Software, to use, study, copy, merge, embed, 53 | modify, redistribute, and sell modified and unmodified copies of the 54 | Font Software, subject to the following conditions: 55 | 56 | 1) Neither the Font Software nor any of its individual components, in 57 | Original or Modified Versions, may be sold by itself. 58 | 59 | 2) Original or Modified Versions of the Font Software may be bundled, 60 | redistributed and/or sold with any software, provided that each copy 61 | contains the above copyright notice and this license. These can be 62 | included either as stand-alone text files, human-readable headers or 63 | in the appropriate machine-readable metadata fields within text or 64 | binary files as long as those fields can be easily viewed by the user. 65 | 66 | 3) No Modified Version of the Font Software may use the Reserved Font 67 | Name(s) unless explicit written permission is granted by the 68 | corresponding Copyright Holder. This restriction only applies to the 69 | primary font name as presented to the users. 70 | 71 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 72 | Software shall not be used to promote, endorse or advertise any 73 | Modified Version, except to acknowledge the contribution(s) of the 74 | Copyright Holder(s) and the Author(s) or with their explicit written 75 | permission. 76 | 77 | 5) The Font Software, modified or unmodified, in part or in whole, 78 | must be distributed entirely under this license, and must not be 79 | distributed under any other license. The requirement for fonts to 80 | remain under this license does not apply to any document created using 81 | the Font Software. 82 | 83 | TERMINATION 84 | This license becomes null and void if any of the above conditions are 85 | not met. 86 | 87 | DISCLAIMER 88 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 89 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 90 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 91 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 92 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 93 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 94 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 95 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 96 | OTHER DEALINGS IN THE FONT SOFTWARE. 97 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [English](README_EN.md) 2 | 3 | # 思源 TrueType 4 | 5 | **思源黑体、思源宋体和思源等宽的 TrueType 版本** 6 | 7 | **思源黑体**、**思源宋体**以及**思源等宽**是由 Adobe 主导开发的开源及跨中日韩地区的多语言字体。这些字体的 OpenType/CFF 文件以及 CID 源文件均由 [SIL 开源字体协议(http://scripts.sil.org/OFL) 授权(另请参阅[常见问题](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL-FAQ_web))。 8 | 9 | 本项目在完整保留曲线精度、尺寸和功能的前提下,提供思源所有字体的 **TrueType 版本**。TrueType 格式在 Microsoft Windows、Microsoft Office 以及前端领域的兼容性要优于 OpenType/CFF (OTF) 格式。本项目提供的所有 TrueType 字体均可与思源 OTF 原版无缝替换,无需返工修订设计文稿。 10 | 11 | 12 | ## 非官方版本 13 | 14 | 虽然本项目在字体设计和功能性上与 OTF 原版保持一致,但需要指出,此项目并非由 Adobe 官方发布。本项目遵循 [SIL 开源字体协议](http://scripts.sil.org/OFL),可免费用于商业用途。 15 | 16 | 17 | ## 下载与安装 18 | 19 | 请前往[**发布页面**](https://github.com/Pal3love/Source-Han-TrueType/releases)下载最新版本的压缩包,解压后即可得到 TTF/TTC 字体文件。当前页面的“Code”按钮仅包含转换所需的代码和源文件,不包含 TrueType 字体。 20 | 21 | * [macOS](https://support.apple.com/en-us/HT201749) 22 | * [Linux](https://github.com/adobe-fonts/source-code-pro/issues/17#issuecomment-8967116) 23 | * [Windows](https://www.microsoft.com/en-us/Typography/TrueTypeInstall.aspx) 24 | * **Windows 用户请注意**:从 Windows 10 1809 开始,Windows 会将字体文件默认安装到用户文件夹下,该行为可能会导致一部分软件找不到字体。建议在字体文件上单击右键,选择“为所有用户安装”,以全局安装。 25 | 26 | 27 | ## 技术规格 28 | 29 | * **OpenType 功能(竖排支持等)**:完整收录 30 | * **Microsoft Office Style-Link**:加粗按钮(B)链接常规与粗体字重 31 | * **Microsoft Office 字体嵌入**:支持 Word、Excel、PowerPoint 等软件的字体嵌入功能 32 | * **封装格式**:完整版为 TrueType Collection (TTC),子集版为 TrueType (TTF) 33 | * **曲线格式**:二次贝塞尔曲线 34 | * **曲线精度(UPM)**:2048,即原版 OpenType/CFF 三次曲线的无损转换 35 | * **屏显渲染策略**:全字号亚像素抗锯齿(Windows 10 及更新版本) 36 | 37 | 38 | ## 可变版本 39 | 40 | Adobe 官方已提供思源黑体和思源宋体的可变版 TrueType 字体文件,请前往以下发布页面下载。 41 | 42 | * [思源黑体可变版](https://github.com/adobe-fonts/source-han-sans/releases) 43 | * [思源宋体可变版](https://github.com/adobe-fonts/source-han-serif/releases) 44 | 45 | 46 | ## Adobe 软件的行高过大问题 47 | 48 | Adobe 软件(如 Photoshop、Illustrator 等)的行高过大问题是由 OTF 原版字体中的“3 em vertical dash”字符所导致的。思源字体的全局字框为了容纳该字符而撑得很高。本项目与思源 OTF 原版的所有功能保持完全一致,因而**不会**修改该设计。**如需修正行高的版本,请前往[梦源字体系列](https://github.com/Pal3love/dream-han-cjk)**。该系列除修正行高之外,更提供了多达 27 个字重的丰富选择。 49 | 50 | 51 | ## 编译 52 | 53 | 如需在本地完成转换过程,请参考以下指南。 54 | 55 | ### 硬盘空间 56 | 57 | 脚本将生成约 5 GB 临时文件,加上最终的 ZIP 压缩包共计约 6 GB 总硬盘空间。临时文件将在运行结束时自动删除。 58 | 59 | ### 平台依赖 60 | 61 | 本项目支持 Windows Linux 子系统(WSL)、Linux x86-64(带有 Wine)与 macOS 平台。请先确保以下依赖已安装: 62 | 63 | * Python 3.8 及以上 64 | * PyPI 包管理(`pip`) 65 | * `pip install afdko`: [Adobe Font Development Kit for OpenType (AFDKO)](https://github.com/adobe-type-tools/afdko) 66 | * 使用包管理器安装 `zip`,如 `sudo apt install zip`(仅供 WSL 和 Linux;macOS 已自带) 67 | 68 | ### OTF 源文件 69 | 70 | 为节约体积,本仓库不自带原版思源 OTF 字体文件。请前往官方仓库下载 OTF 字体并分别放在 source 目录内的三个子目录内: 71 | 72 | * 请将[思源等宽的所有 OTF 文件](https://github.com/adobe-fonts/source-han-mono/archive/refs/heads/master.zip)放在 source-han-mono 目录内; 73 | * 请将[思源黑体的所有 OTF 文件](https://github.com/adobe-fonts/source-han-sans/releases)放在 source-han-sans 目录内; 74 | * 请将[思源宋体的所有 OTF 文件](https://github.com/adobe-fonts/source-han-serif/releases)放在 source-han-serif 目录内。 75 | 76 | ### 执行脚本 77 | 78 | * WSL: `cd` 进 script 目录后,执行 `./build_ttfs.sh wsl <最大并行数>` 79 | * Linux: `cd` 进 script 目录后,执行 `./build_ttfs.sh linux <最大并行数>` 80 | * macOS: `cd` 进 script 目录后,执行 `./build_ttfs.sh mac <最大并行数>` 81 | * 其中,**最大并行数**决定最多并行处理的字体数量。每个字体占用约 1.5 CPU 线程和最多 600 MB 内存,请根据自己的电脑配置酌情选择。譬如,AMD Ryzen 9 3950X 可将此参数设为 28,在内存足够的情况下,可达 97% CPU 使用率。 82 | * 脚本运行完成后,最终字体的 ZIP 压缩包将位于根目录下新创建的 release 目录内。运行过程中产生的临时文件将会在结束时自动删除。 83 | 84 | 85 | ## 更多信息 86 | 87 | 如需获取 Adobe 思源系列字体的设计、使用以及其他信息,请访问以下官方 GitHub 仓库: 88 | 89 | * [思源黑体](https://github.com/adobe-fonts/source-han-sans) 90 | * [思源宋体](https://github.com/adobe-fonts/source-han-serif) 91 | * [思源等宽](https://github.com/adobe-fonts/source-han-mono) 92 | -------------------------------------------------------------------------------- /README_EN.md: -------------------------------------------------------------------------------- 1 | [简体中文](README.md) 2 | 3 | # Source Han TrueType 4 | 5 | **TrueType Version of Source Han Sans, Source Han Serif and Source Han Mono** 6 | 7 | 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](http://scripts.sil.org/OFL) (also see the [FAQ](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL-FAQ_web)). 8 | 9 | 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. 10 | 11 | 12 | ## 3rd-Party Project 13 | 14 | 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](http://scripts.sil.org/OFL), allowing free commercial use. 15 | 16 | 17 | ## Download and Installation 18 | 19 | Please visit the [**release page**](https://github.com/Pal3love/Source-Han-TrueType/releases) 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. 20 | 21 | * [macOS](https://support.apple.com/en-us/HT201749) 22 | * [Linux](https://github.com/adobe-fonts/source-code-pro/issues/17#issuecomment-8967116) 23 | * [Windows](https://www.microsoft.com/en-us/Typography/TrueTypeInstall.aspx) 24 | * **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. 25 | 26 | 27 | ## Specification 28 | 29 | * **OpenType features including vertical writing support**: all included 30 | * **Microsoft Office style link**: the Bold button (B) links Regular and Bold weight 31 | * **Microsoft Office font embedding**: full supported on Word, Excel, PowerPoint, etc. 32 | * **Font container format**: TrueType Collection (TTC) for language-specific version and TrueType (TTF) for region-specific version 33 | * **Curve format**: quadratic Bézier curve 34 | * **Units-per-em (UPM)**: 2048, i.e. lossless conversion from the OpenType/CFF source 35 | * **Render strategy**: full-range subpixel anti-aliasing (since Windows 10) 36 | 37 | 38 | ## Variable Fonts 39 | 40 | The Adobe official repo has provided TrueType version of variable Source Han Sans and Source Han Serif. Please visit their release page to download. 41 | 42 | * [Source Han Sans variable](https://github.com/adobe-fonts/source-han-sans/releases) 43 | * [Source Han Serif variable](https://github.com/adobe-fonts/source-han-serif/releases) 44 | 45 | 46 | ## Overlarge Line Height Concern on Adobe Applications 47 | 48 | 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](https://github.com/Pal3love/dream-han-cjk)**, a Source-Han-inspired open source font project providing more features and up to 27 weights. 49 | 50 | 51 | ## Compilation 52 | 53 | To reproduce the font conversion process locally, please refer to the following guidance. 54 | 55 | ### Disk Space 56 | 57 | ~ 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. 58 | 59 | ### Dependency 60 | 61 | 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: 62 | 63 | * Python 3.8 and above 64 | * PyPI (`pip`) 65 | * `pip install afdko`: [Adobe Font Development Kit for OpenType (AFDKO)](https://github.com/adobe-type-tools/afdko) 66 | * Install `zip` via the package manager, such as `sudo apt install zip` (for WSL and Linux only; already bundled with macOS) 67 | 68 | ### OTF Source File 69 | 70 | 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: 71 | 72 | * Please put [all Source Han Mono OTF files](https://github.com/adobe-fonts/source-han-mono/archive/refs/heads/master.zip) in folder *source-han-mono*; 73 | * Please put [all Source Han Sans OTF files](https://github.com/adobe-fonts/source-han-sans/releases) in folder *source-han-sans*; 74 | * Please put [all Source Han Serif OTF files](https://github.com/adobe-fonts/source-han-serif/releases) in folder *source-han-serif*. 75 | 76 | ### Build Fonts 77 | 78 | * WSL: `cd` into the *script* folder and execute `./build_ttfs.sh wsl ` 79 | Linux: `cd` into the *script* folder and execute `./build_ttfs.sh linux ` 80 | * macOS: `cd` into the *script* folder and execute `./build_ttfs.sh mac ` 81 | * 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. 82 | * 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. 83 | 84 | 85 | ## More Information 86 | 87 | For information about design, usage and more of Source Han fonts, please refer to the following official repos: 88 | 89 | * [Source Han Sans](https://github.com/adobe-fonts/source-han-sans) 90 | * [Source Han Serif](https://github.com/adobe-fonts/source-han-serif) 91 | * [Source Han Mono](https://github.com/adobe-fonts/source-han-mono) 92 | -------------------------------------------------------------------------------- /binary/otrebuild_mac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pal3love/Source-Han-TrueType/e497d85ad443b410585de50c7f7838a966608cfb/binary/otrebuild_mac -------------------------------------------------------------------------------- /binary/otrebuild_win.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pal3love/Source-Han-TrueType/e497d85ad443b410585de50c7f7838a966608cfb/binary/otrebuild_win.exe -------------------------------------------------------------------------------- /release/2.004-2.001-1.002-R/README.md: -------------------------------------------------------------------------------- 1 | [English](README_EN.md) 2 | 3 | # 黑体 2.004,宋体 2.001,等宽 1.002 4 | 5 | 6 | ## 字体版本 7 | 8 | * **思源黑体**:2.004 9 | * **思源宋体**:2.001 10 | * **思源等宽**:1.002 11 | 12 | 注意:从该版本开始,[思源黑体等宽日本地区版](https://github.com/adobe-fonts/source-han-code-jp)已替换为多语言完整版,[思源等宽](https://github.com/adobe-fonts/source-han-mono)。 13 | 14 | 15 | ## 版本一览表 16 | 17 | | 版本 | 功能 | 思源黑体 | 思源宋体 | 思源等宽 | 18 | |--------------|----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| 19 | | 完整版 | 6,5535 字符,含所有语言/地区字形 | [标准版 TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSans.zip),[半宽西文版 TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansHW.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerif.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanMono.zip) | 20 | | 大陆简中子集 | 只包含简中标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansCN.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifCN.zip) | - | 21 | | 台湾繁中子集 | 只包含台湾国字标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansTW.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifTW.zip) | - | 22 | | 香港繁中子集 | 只包含香港标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansHK.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifHK.zip) | - | 23 | | 日本语子集 | 只包含日本标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansJP.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifJP.zip) | - | 24 | | 韩国语子集 | 只包含韩国标准字形,又称“旧字形” | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansKR.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifKR.zip) | - | 25 | 26 | 27 | ## Microsoft Office 字体嵌入功能 28 | 29 | Word、PowerPoint 等软件在嵌入字体时,因软件 bug 无法子集嵌入 TTC 完整版,导致生成超大体积文档。如遇到这种情况,可换用 TTF 子集版,即可正常嵌入字体子集。 30 | 31 | 32 | ## 中国大陆分流 33 | 34 | 如果此处下载缓慢或卡顿,请访问[百度网盘](https://pan.baidu.com/s/1b9hhWCKm1QQN97HkcOfxOQ?pwd=o6aj)(提取码:o6aj)。 35 | -------------------------------------------------------------------------------- /release/2.004-2.001-1.002-R/README_EN.md: -------------------------------------------------------------------------------- 1 | [简体中文](README.md) 2 | 3 | # Sans 2.004, Serif 2.001, Mono 1.002 4 | 5 | 6 | ## Font Versions 7 | 8 | * **Source Han Sans**: 2.004 9 | * **Source Han Serif**: 2.001 10 | * **Source Han Mono**: 1.002 11 | 12 | Note: starting this version, [Source Han Code JP](https://github.com/adobe-fonts/source-han-code-jp) is replaced with its full version, [Source Han Mono](https://github.com/adobe-fonts/source-han-mono). 13 | 14 | 15 | ## Languages and Regions 16 | 17 | | Language/Region | Ideograph Form | Source Han Sans | Source Han Serif | Source Han Mono | 18 | |--------------------------------------------|---------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| 19 | | Complete | 65,535 glyphs, including all languages/regions | [Standard TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSans.zip), [Half-Width Latin TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansHW.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerif.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanMono.zip) | 20 | | Simplified Chinese (China Mainland) Subset | Only contains Simplified Chinese form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansCN.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifCN.zip) | - | 21 | | Traditional Chinese (Taiwan) Subset | Only contains Traditional Chinese, Taiwan form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansTW.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifTW.zip) | - | 22 | | Traditional Chinese (Hong Kong) Subset | Only contains Traditional Chinese, Hong Kong form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansHK.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifHK.zip) | - | 23 | | Japanese (Japan) Subset | Only contains Japanese form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansJP.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifJP.zip) | - | 24 | | Korean (Korea) Subset | Only contains Korean form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSansKR.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.001-1.002-R/SourceHanSerifKR.zip) | - | 25 | 26 | 27 | ## Embedding Font into Microsoft Office Documents 28 | 29 | Due to software internal issues, when using the TTC complete version, subset embedding does not work properly on Word, PowerPoint, etc. Instead, the full font file will be embedded, resulting a jumbo document generated. In this case, please switch to the TTF subset version, and Microsoft Office should work as expected. 30 | -------------------------------------------------------------------------------- /release/2.004-2.002-1.002-R/README.md: -------------------------------------------------------------------------------- 1 | [English](README_EN.md) 2 | 3 | # 黑体 2.004,宋体 2.002,等宽 1.002 4 | 5 | 6 | ## 字体版本 7 | 8 | * **思源黑体**:2.004 9 | * **思源宋体**:2.002 10 | * **思源等宽**:1.002 11 | 12 | 13 | ## 版本一览表 14 | 15 | | 版本 | 功能 | 思源黑体 | 思源宋体 | 思源等宽 | 16 | |--------------|----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| 17 | | 完整版 | 6,5535 字符,含所有语言/地区字形 | [标准版 TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSans.zip),[半宽西文版 TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansHW.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerif.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanMono.zip) | 18 | | 大陆简中子集 | 只包含简中标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansCN.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifCN.zip) | - | 19 | | 台湾繁中子集 | 只包含台湾国字标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansTW.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifTW.zip) | - | 20 | | 香港繁中子集 | 只包含香港标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansHK.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifHK.zip) | - | 21 | | 日本语子集 | 只包含日本标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansJP.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifJP.zip) | - | 22 | | 韩国语子集 | 只包含韩国标准字形,又称“旧字形” | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansKR.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifKR.zip) | - | 23 | 24 | 25 | ## Microsoft Office 字体嵌入功能 26 | 27 | Word、PowerPoint 等软件在嵌入字体时,因软件 bug 无法子集嵌入 TTC 完整版,导致生成超大体积文档。如遇到这种情况,可换用 TTF 子集版,即可正常嵌入字体子集。 28 | 29 | 30 | ## 中国大陆分流 31 | 32 | 如果此处下载缓慢或卡顿,请访问[百度网盘](https://pan.baidu.com/s/1b9hhWCKm1QQN97HkcOfxOQ?pwd=o6aj)(提取码:o6aj)。 33 | -------------------------------------------------------------------------------- /release/2.004-2.002-1.002-R/README_EN.md: -------------------------------------------------------------------------------- 1 | [简体中文](README.md) 2 | 3 | # Sans 2.004, Serif 2.002, Mono 1.002 4 | 5 | 6 | ## Font Versions 7 | 8 | * **Source Han Sans**: 2.004 9 | * **Source Han Serif**: 2.002 10 | * **Source Han Mono**: 1.002 11 | 12 | 13 | ## Languages and Regions 14 | 15 | | Language/Region | Ideograph Form | Source Han Sans | Source Han Serif | Source Han Mono | 16 | |--------------------------------------------|---------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| 17 | | Complete | 65,535 glyphs, including all languages/regions | [Standard TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSans.zip), [Half-Width Latin TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansHW.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerif.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanMono.zip) | 18 | | Simplified Chinese (China Mainland) Subset | Only contains Simplified Chinese form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansCN.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifCN.zip) | - | 19 | | Traditional Chinese (Taiwan) Subset | Only contains Traditional Chinese, Taiwan form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansTW.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifTW.zip) | - | 20 | | Traditional Chinese (Hong Kong) Subset | Only contains Traditional Chinese, Hong Kong form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansHK.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifHK.zip) | - | 21 | | Japanese (Japan) Subset | Only contains Japanese form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansJP.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifJP.zip) | - | 22 | | Korean (Korea) Subset | Only contains Korean form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSansKR.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.002-1.002-R/SourceHanSerifKR.zip) | - | 23 | 24 | 25 | ## Embedding Font into Microsoft Office Documents 26 | 27 | Due to software internal issues, when using the TTC complete version, subset embedding does not work properly on Word, PowerPoint, etc. Instead, the full font file will be embedded, resulting a jumbo document generated. In this case, please switch to the TTF subset version, and Microsoft Office should work as expected. 28 | -------------------------------------------------------------------------------- /release/2.004-2.003-1.002-R/README.md: -------------------------------------------------------------------------------- 1 | [English](README_EN.md) 2 | 3 | # 黑体 2.004,宋体 2.003,等宽 1.002 4 | 5 | 6 | ## 字体版本 7 | 8 | * **思源黑体**:2.004 9 | * **思源宋体**:2.003 10 | * **思源等宽**:1.002 11 | 12 | 13 | ## 版本一览表 14 | 15 | | 版本 | 功能 | 思源黑体 | 思源宋体 | 思源等宽 | 16 | |--------------|----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| 17 | | 完整版 | 6,5535 字符,含所有语言/地区字形 | [标准版 TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSans.zip),[半宽西文版 TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansHW.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerif.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanMono.zip) | 18 | | 大陆简中子集 | 只包含简中标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansCN.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifCN.zip) | - | 19 | | 台湾繁中子集 | 只包含台湾国字标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansTW.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifTW.zip) | - | 20 | | 香港繁中子集 | 只包含香港标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansHK.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifHK.zip) | - | 21 | | 日本语子集 | 只包含日本标准字形 | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansJP.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifJP.zip) | - | 22 | | 韩国语子集 | 只包含韩国标准字形,又称“旧字形” | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansKR.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifKR.zip) | - | 23 | 24 | 25 | ## Microsoft Office 字体嵌入功能 26 | 27 | Word、PowerPoint 等软件在嵌入字体时,因软件 bug 无法子集嵌入 TTC 完整版,导致生成超大体积文档。如遇到这种情况,可换用 TTF 子集版,即可正常嵌入字体子集。 28 | 29 | 30 | ## 中国大陆分流 31 | 32 | 如果此处下载缓慢或卡顿,请访问[百度网盘](https://pan.baidu.com/s/1b9hhWCKm1QQN97HkcOfxOQ?pwd=o6aj)(提取码:o6aj)。 33 | -------------------------------------------------------------------------------- /release/2.004-2.003-1.002-R/README_EN.md: -------------------------------------------------------------------------------- 1 | [简体中文](README.md) 2 | 3 | # Sans 2.004, Serif 2.003, Mono 1.002 4 | 5 | 6 | ## Font Versions 7 | 8 | * **Source Han Sans**: 2.004 9 | * **Source Han Serif**: 2.003 10 | * **Source Han Mono**: 1.002 11 | 12 | 13 | ## Languages and Regions 14 | 15 | | Language/Region | Ideograph Form | Source Han Sans | Source Han Serif | Source Han Mono | 16 | |--------------------------------------------|---------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| 17 | | Complete | 65,535 glyphs, including all languages/regions | [Standard TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSans.zip), [Half-Width Latin TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansHW.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerif.zip) | [TTC](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanMono.zip) | 18 | | Simplified Chinese (China Mainland) Subset | Only contains Simplified Chinese form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansCN.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifCN.zip) | - | 19 | | Traditional Chinese (Taiwan) Subset | Only contains Traditional Chinese, Taiwan form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansTW.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifTW.zip) | - | 20 | | Traditional Chinese (Hong Kong) Subset | Only contains Traditional Chinese, Hong Kong form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansHK.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifHK.zip) | - | 21 | | Japanese (Japan) Subset | Only contains Japanese form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansJP.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifJP.zip) | - | 22 | | Korean (Korea) Subset | Only contains Korean form | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSansKR.zip) | [TTF](https://github.com/Pal3love/Source-Han-TrueType/releases/download/2.004-2.003-1.002-R/SourceHanSerifKR.zip) | - | 23 | 24 | 25 | ## Embedding Font into Microsoft Office Documents 26 | 27 | Due to software internal issues, when using the TTC complete version, subset embedding does not work properly on Word, PowerPoint, etc. Instead, the full font file will be embedded, resulting a jumbo document generated. In this case, please switch to the TTF subset version, and Microsoft Office should work as expected. 28 | -------------------------------------------------------------------------------- /script/build_ttfs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | maximum_parallels=1 5 | current_parallels=0 6 | 7 | script_file_name="build_ttfs.sh" 8 | otrebuild_win="otrebuild_win.exe" 9 | otrebuild_mac="otrebuild_mac" 10 | otrebuild_binary=${otrebuild_win} 11 | otrebuild_wrapper= 12 | 13 | binary_folder="binary" 14 | release_folder="release" 15 | script_folder="script" 16 | source_folder="source" 17 | temp_folder="temp" 18 | 19 | font_grand_family="SourceHan" 20 | font_mono_typeface="Mono" 21 | font_sans_typeface="Sans" 22 | font_sans_hw_typeface="SansHW" 23 | font_serif_typeface="Serif" 24 | font_lingual_typefaces=(${font_sans_hw_typeface} ${font_mono_typeface}) 25 | font_regional_typefaces=(${font_sans_typeface} ${font_serif_typeface}) 26 | font_typefaces=(${font_lingual_typefaces[@]} ${font_regional_typefaces[@]}) 27 | 28 | font_languages=(SC TC HC J K) 29 | font_regions=(CN TW HK JP KR) 30 | font_languages_and_regions=(${font_languages[@]} ${font_regions[@]}) 31 | 32 | font_mono_italic_appendix="It" 33 | font_shared_weights=(ExtraLight Light Medium Heavy) 34 | font_hw_weights=(Regular Bold) 35 | font_sans_mono_special_weights=(Normal) 36 | font_serif_spectial_weights=(SemiBold) 37 | font_sans_mono_weights=(${font_shared_weights[@]} ${font_hw_weights[@]} ${font_sans_mono_special_weights[@]}) 38 | font_serif_weights=(${font_shared_weights[@]} ${font_hw_weights[@]} ${font_serif_spectial_weights[@]}) 39 | 40 | 41 | function print_usage_and_exit() { 42 | echo "Usage: ${script_file_name} " 43 | exit 1 44 | } 45 | 46 | function is_number() { 47 | [[ $1 =~ ^[0-9]+$ ]] 48 | } 49 | 50 | function set_platform() { 51 | case $1 in 52 | wsl) 53 | ;; 54 | linux) 55 | if grep -iq "magic 4d5a" /proc/sys/fs/binfmt_misc/*; then 56 | # 4d5a == "MZ", i.e. the PE magic. 57 | # Wine is registered as binfmt handler for PE files. 58 | # Do nothing; just act like WSL. 59 | : 60 | elif wine --help >/dev/null 2>&1; then 61 | # `wine` command available. 62 | # Call otrebuilder via `wine otrebuilder.exe`. 63 | otrebuild_wrapper="wine" 64 | else 65 | echo "Wine required" 66 | print_usage_and_exit 67 | fi 68 | ;; 69 | mac) 70 | otrebuild_binary=${otrebuild_mac} 71 | ;; 72 | *) 73 | print_usage_and_exit 74 | esac 75 | echo "Set platform to $1" 76 | } 77 | 78 | function set_parallels() { 79 | if ! is_number $1; then 80 | print_usage_and_exit 81 | elif [ $1 -gt 1 ]; then 82 | maximum_parallels=$1 83 | fi 84 | echo "Set maximum parallel jobs to ${maximum_parallels}" 85 | } 86 | 87 | function limit_parallels() { 88 | current_parallels=`expr ${current_parallels} + 1` 89 | if [ ${current_parallels} -gt ${maximum_parallels} ]; then 90 | wait 91 | current_parallels=1 92 | fi 93 | } 94 | 95 | function convert() { 96 | for font_path in *.otf; do 97 | font_file_name="${font_path##*/}" 98 | font_file="${font_file_name%.*}" 99 | limit_parallels; { 100 | ${otrebuild_wrapper} ../../${binary_folder}/${otrebuild_binary} --otf2ttf --UPM 2048 --removeGlyphNames --O1 -o ../../${temp_folder}/${font_file}.ttf ${font_path} 101 | } & 102 | done 103 | wait 104 | } 105 | 106 | function rename() { 107 | pattern=$1 108 | while [[ $# > 1 ]]; do 109 | shift 110 | new_file_name=$(echo "$1" | sed "${pattern}") 111 | mv $1 ${new_file_name} 112 | done 113 | } 114 | 115 | function add_japanese_language_code() { 116 | for font_typeface in ${font_typefaces[@]}; do 117 | rename "s/${font_grand_family}${font_typeface}-/${font_grand_family}${font_typeface}J-/" ${font_grand_family}${font_typeface}-*.ttf 118 | done 119 | } 120 | 121 | function make_ttc() { 122 | local font_typeface=$1 # Save first argument in a variable 123 | shift # Shift all arguments to the left (original $1 gets lost) 124 | local font_weights=("$@") # Rebuild the array with rest of arguments 125 | font_family="${font_grand_family}${font_typeface}" 126 | for font_weight in ${font_weights[@]}; do 127 | ttfs="" 128 | for font_language in ${font_languages[@]}; do 129 | ttfs+="${font_family}${font_language}-${font_weight}.ttf " 130 | done 131 | otf2otc -o ${font_family}-${font_weight}.ttc ${ttfs} 132 | done 133 | } 134 | 135 | function make_ttcs() { 136 | font_mono_italics=() 137 | for font_sans_mono_weight in ${font_sans_mono_weights[@]}; do 138 | font_mono_italics+=("${font_sans_mono_weight}${font_mono_italic_appendix}") 139 | done 140 | make_ttc ${font_mono_typeface} ${font_mono_italics[@]} 141 | make_ttc ${font_mono_typeface} ${font_sans_mono_weights[@]} 142 | make_ttc ${font_sans_typeface} ${font_sans_mono_weights[@]} 143 | make_ttc ${font_sans_hw_typeface} ${font_hw_weights[@]} 144 | make_ttc ${font_serif_typeface} ${font_serif_weights[@]} 145 | } 146 | 147 | function compress_ttc() { 148 | for font_typeface in ${font_typefaces[@]}; do 149 | limit_parallels; { 150 | ttcs="" 151 | for ttc_path in `ls ${font_grand_family}${font_typeface}-*.ttc`; do 152 | ttcs+="${ttc_path} " 153 | done 154 | zip ../${release_folder}/${font_grand_family}${font_typeface}.zip ${ttcs} 155 | } & 156 | done 157 | wait 158 | } 159 | 160 | function compress_ttf() { 161 | for font_typeface in ${font_regional_typefaces[@]}; do 162 | for font_region in ${font_regions[@]}; do 163 | limit_parallels; { 164 | ttfs="" 165 | for ttf_path in `ls ${font_grand_family}${font_typeface}${font_region}-*.ttf`; do 166 | ttfs+="${ttf_path} " 167 | done 168 | zip ../${release_folder}/${font_grand_family}${font_typeface}${font_region}.zip ${ttfs} 169 | } & 170 | done 171 | done 172 | wait 173 | } 174 | 175 | function main() { 176 | # Go to root. 177 | cd .. 178 | 179 | # Clean up & recreate temp & output folders. 180 | rm -rf ${temp_folder} 181 | rm -rf ${release_folder} 182 | mkdir ${temp_folder} 183 | mkdir ${release_folder} 184 | 185 | # Convert all OTFs into TTFs. 186 | cd ${source_folder}/source-han-mono 187 | convert 188 | cd ../source-han-sans 189 | convert 190 | cd ../source-han-serif 191 | convert 192 | cd ../.. 193 | 194 | # Insert Japanese language code "J". 195 | cd ${temp_folder} 196 | add_japanese_language_code 197 | 198 | # Combine lingual fonts into TTC files. 199 | make_ttcs 200 | 201 | # Compress font files into ZIPs. 202 | compress_ttc 203 | compress_ttf 204 | 205 | # Clean up. 206 | rm -f *.ttf 207 | rm -f *.ttc 208 | cd .. 209 | rm -rf ${temp_folder} 210 | } 211 | 212 | 213 | if [ $# != 2 ]; then 214 | print_usage_and_exit 215 | else 216 | set_platform $1 217 | set_parallels $2 218 | sleep 3 219 | main 220 | fi 221 | -------------------------------------------------------------------------------- /source/source-han-mono/README.txt: -------------------------------------------------------------------------------- 1 | 请从思源等宽官方仓库下载原版 OTF 文件,并将所有 OTF 文件放在该目录下。请不要将 OTF 文件留在任何子目录内。 2 | 3 | Please download the original OTF fonts from Source Han Mono official repo and put them right there. Do not leave OTF files in any sub directory. 4 | 5 | Source Han Mono 6 | https://github.com/adobe-fonts/source-han-mono/archive/refs/heads/master.zip 7 | 8 | File List 9 | SourceHanMono-Bold.otf 10 | SourceHanMono-BoldIt.otf 11 | SourceHanMono-ExtraLight.otf 12 | SourceHanMono-ExtraLightIt.otf 13 | SourceHanMono-Heavy.otf 14 | SourceHanMono-HeavyIt.otf 15 | SourceHanMono-Light.otf 16 | SourceHanMono-LightIt.otf 17 | SourceHanMono-Medium.otf 18 | SourceHanMono-MediumIt.otf 19 | SourceHanMono-Normal.otf 20 | SourceHanMono-NormalIt.otf 21 | SourceHanMono-Regular.otf 22 | SourceHanMono-RegularIt.otf 23 | SourceHanMonoHC-Bold.otf 24 | SourceHanMonoHC-BoldIt.otf 25 | SourceHanMonoHC-ExtraLight.otf 26 | SourceHanMonoHC-ExtraLightIt.otf 27 | SourceHanMonoHC-Heavy.otf 28 | SourceHanMonoHC-HeavyIt.otf 29 | SourceHanMonoHC-Light.otf 30 | SourceHanMonoHC-LightIt.otf 31 | SourceHanMonoHC-Medium.otf 32 | SourceHanMonoHC-MediumIt.otf 33 | SourceHanMonoHC-Normal.otf 34 | SourceHanMonoHC-NormalIt.otf 35 | SourceHanMonoHC-Regular.otf 36 | SourceHanMonoHC-RegularIt.otf 37 | SourceHanMonoK-Bold.otf 38 | SourceHanMonoK-BoldIt.otf 39 | SourceHanMonoK-ExtraLight.otf 40 | SourceHanMonoK-ExtraLightIt.otf 41 | SourceHanMonoK-Heavy.otf 42 | SourceHanMonoK-HeavyIt.otf 43 | SourceHanMonoK-Light.otf 44 | SourceHanMonoK-LightIt.otf 45 | SourceHanMonoK-Medium.otf 46 | SourceHanMonoK-MediumIt.otf 47 | SourceHanMonoK-Normal.otf 48 | SourceHanMonoK-NormalIt.otf 49 | SourceHanMonoK-Regular.otf 50 | SourceHanMonoK-RegularIt.otf 51 | SourceHanMonoSC-Bold.otf 52 | SourceHanMonoSC-BoldIt.otf 53 | SourceHanMonoSC-ExtraLight.otf 54 | SourceHanMonoSC-ExtraLightIt.otf 55 | SourceHanMonoSC-Heavy.otf 56 | SourceHanMonoSC-HeavyIt.otf 57 | SourceHanMonoSC-Light.otf 58 | SourceHanMonoSC-LightIt.otf 59 | SourceHanMonoSC-Medium.otf 60 | SourceHanMonoSC-MediumIt.otf 61 | SourceHanMonoSC-Normal.otf 62 | SourceHanMonoSC-NormalIt.otf 63 | SourceHanMonoSC-Regular.otf 64 | SourceHanMonoSC-RegularIt.otf 65 | SourceHanMonoTC-Bold.otf 66 | SourceHanMonoTC-BoldIt.otf 67 | SourceHanMonoTC-ExtraLight.otf 68 | SourceHanMonoTC-ExtraLightIt.otf 69 | SourceHanMonoTC-Heavy.otf 70 | SourceHanMonoTC-HeavyIt.otf 71 | SourceHanMonoTC-Light.otf 72 | SourceHanMonoTC-LightIt.otf 73 | SourceHanMonoTC-Medium.otf 74 | SourceHanMonoTC-MediumIt.otf 75 | SourceHanMonoTC-Normal.otf 76 | SourceHanMonoTC-NormalIt.otf 77 | SourceHanMonoTC-Regular.otf 78 | SourceHanMonoTC-RegularIt.otf 79 | -------------------------------------------------------------------------------- /source/source-han-sans/README.txt: -------------------------------------------------------------------------------- 1 | 请从思源黑体官方仓库下载原版 OTF 文件,并将所有 OTF 文件放在该目录下。请不要将 OTF 文件留在任何子目录内。 2 | 3 | Please download the original OTF fonts from Source Han Sans official repo and put them right there. Do not leave OTF files in any sub directory. 4 | 5 | Source Han Sans 6 | https://github.com/adobe-fonts/source-han-sans/releases 7 | 8 | File List 9 | SourceHanSans-Bold.otf 10 | SourceHanSans-ExtraLight.otf 11 | SourceHanSans-Heavy.otf 12 | SourceHanSans-Light.otf 13 | SourceHanSans-Medium.otf 14 | SourceHanSans-Normal.otf 15 | SourceHanSans-Regular.otf 16 | SourceHanSansCN-Bold.otf 17 | SourceHanSansCN-ExtraLight.otf 18 | SourceHanSansCN-Heavy.otf 19 | SourceHanSansCN-Light.otf 20 | SourceHanSansCN-Medium.otf 21 | SourceHanSansCN-Normal.otf 22 | SourceHanSansCN-Regular.otf 23 | SourceHanSansHC-Bold.otf 24 | SourceHanSansHC-ExtraLight.otf 25 | SourceHanSansHC-Heavy.otf 26 | SourceHanSansHC-Light.otf 27 | SourceHanSansHC-Medium.otf 28 | SourceHanSansHC-Normal.otf 29 | SourceHanSansHC-Regular.otf 30 | SourceHanSansHK-Bold.otf 31 | SourceHanSansHK-ExtraLight.otf 32 | SourceHanSansHK-Heavy.otf 33 | SourceHanSansHK-Light.otf 34 | SourceHanSansHK-Medium.otf 35 | SourceHanSansHK-Normal.otf 36 | SourceHanSansHK-Regular.otf 37 | SourceHanSansHW-Bold.otf 38 | SourceHanSansHW-Regular.otf 39 | SourceHanSansHWHC-Bold.otf 40 | SourceHanSansHWHC-Regular.otf 41 | SourceHanSansHWK-Bold.otf 42 | SourceHanSansHWK-Regular.otf 43 | SourceHanSansHWSC-Bold.otf 44 | SourceHanSansHWSC-Regular.otf 45 | SourceHanSansHWTC-Bold.otf 46 | SourceHanSansHWTC-Regular.otf 47 | SourceHanSansJP-Bold.otf 48 | SourceHanSansJP-ExtraLight.otf 49 | SourceHanSansJP-Heavy.otf 50 | SourceHanSansJP-Light.otf 51 | SourceHanSansJP-Medium.otf 52 | SourceHanSansJP-Normal.otf 53 | SourceHanSansJP-Regular.otf 54 | SourceHanSansK-Bold.otf 55 | SourceHanSansK-ExtraLight.otf 56 | SourceHanSansK-Heavy.otf 57 | SourceHanSansK-Light.otf 58 | SourceHanSansK-Medium.otf 59 | SourceHanSansK-Normal.otf 60 | SourceHanSansK-Regular.otf 61 | SourceHanSansKR-Bold.otf 62 | SourceHanSansKR-ExtraLight.otf 63 | SourceHanSansKR-Heavy.otf 64 | SourceHanSansKR-Light.otf 65 | SourceHanSansKR-Medium.otf 66 | SourceHanSansKR-Normal.otf 67 | SourceHanSansKR-Regular.otf 68 | SourceHanSansSC-Bold.otf 69 | SourceHanSansSC-ExtraLight.otf 70 | SourceHanSansSC-Heavy.otf 71 | SourceHanSansSC-Light.otf 72 | SourceHanSansSC-Medium.otf 73 | SourceHanSansSC-Normal.otf 74 | SourceHanSansSC-Regular.otf 75 | SourceHanSansTC-Bold.otf 76 | SourceHanSansTC-ExtraLight.otf 77 | SourceHanSansTC-Heavy.otf 78 | SourceHanSansTC-Light.otf 79 | SourceHanSansTC-Medium.otf 80 | SourceHanSansTC-Normal.otf 81 | SourceHanSansTC-Regular.otf 82 | SourceHanSansTW-Bold.otf 83 | SourceHanSansTW-ExtraLight.otf 84 | SourceHanSansTW-Heavy.otf 85 | SourceHanSansTW-Light.otf 86 | SourceHanSansTW-Medium.otf 87 | SourceHanSansTW-Normal.otf 88 | SourceHanSansTW-Regular.otf 89 | -------------------------------------------------------------------------------- /source/source-han-serif/README.txt: -------------------------------------------------------------------------------- 1 | 请从思源宋体官方仓库下载原版 OTF 文件,并将所有 OTF 文件放在该目录下。请不要将 OTF 文件留在任何子目录内。 2 | 3 | Please download the original OTF fonts from Source Han Serif official repo and put them right there. Do not leave OTF files in any sub directory. 4 | 5 | Source Han Serif 6 | https://github.com/adobe-fonts/source-han-serif/releases 7 | 8 | File List 9 | SourceHanSerif-Bold.otf 10 | SourceHanSerif-ExtraLight.otf 11 | SourceHanSerif-Heavy.otf 12 | SourceHanSerif-Light.otf 13 | SourceHanSerif-Medium.otf 14 | SourceHanSerif-Regular.otf 15 | SourceHanSerif-SemiBold.otf 16 | SourceHanSerifCN-Bold.otf 17 | SourceHanSerifCN-ExtraLight.otf 18 | SourceHanSerifCN-Heavy.otf 19 | SourceHanSerifCN-Light.otf 20 | SourceHanSerifCN-Medium.otf 21 | SourceHanSerifCN-Regular.otf 22 | SourceHanSerifCN-SemiBold.otf 23 | SourceHanSerifHC-Bold.otf 24 | SourceHanSerifHC-ExtraLight.otf 25 | SourceHanSerifHC-Heavy.otf 26 | SourceHanSerifHC-Light.otf 27 | SourceHanSerifHC-Medium.otf 28 | SourceHanSerifHC-Regular.otf 29 | SourceHanSerifHC-SemiBold.otf 30 | SourceHanSerifHK-Bold.otf 31 | SourceHanSerifHK-ExtraLight.otf 32 | SourceHanSerifHK-Heavy.otf 33 | SourceHanSerifHK-Light.otf 34 | SourceHanSerifHK-Medium.otf 35 | SourceHanSerifHK-Regular.otf 36 | SourceHanSerifHK-SemiBold.otf 37 | SourceHanSerifJP-Bold.otf 38 | SourceHanSerifJP-ExtraLight.otf 39 | SourceHanSerifJP-Heavy.otf 40 | SourceHanSerifJP-Light.otf 41 | SourceHanSerifJP-Medium.otf 42 | SourceHanSerifJP-Regular.otf 43 | SourceHanSerifJP-SemiBold.otf 44 | SourceHanSerifK-Bold.otf 45 | SourceHanSerifK-ExtraLight.otf 46 | SourceHanSerifK-Heavy.otf 47 | SourceHanSerifK-Light.otf 48 | SourceHanSerifK-Medium.otf 49 | SourceHanSerifK-Regular.otf 50 | SourceHanSerifK-SemiBold.otf 51 | SourceHanSerifKR-Bold.otf 52 | SourceHanSerifKR-ExtraLight.otf 53 | SourceHanSerifKR-Heavy.otf 54 | SourceHanSerifKR-Light.otf 55 | SourceHanSerifKR-Medium.otf 56 | SourceHanSerifKR-Regular.otf 57 | SourceHanSerifKR-SemiBold.otf 58 | SourceHanSerifSC-Bold.otf 59 | SourceHanSerifSC-ExtraLight.otf 60 | SourceHanSerifSC-Heavy.otf 61 | SourceHanSerifSC-Light.otf 62 | SourceHanSerifSC-Medium.otf 63 | SourceHanSerifSC-Regular.otf 64 | SourceHanSerifSC-SemiBold.otf 65 | SourceHanSerifTC-Bold.otf 66 | SourceHanSerifTC-ExtraLight.otf 67 | SourceHanSerifTC-Heavy.otf 68 | SourceHanSerifTC-Light.otf 69 | SourceHanSerifTC-Medium.otf 70 | SourceHanSerifTC-Regular.otf 71 | SourceHanSerifTC-SemiBold.otf 72 | SourceHanSerifTW-Bold.otf 73 | SourceHanSerifTW-ExtraLight.otf 74 | SourceHanSerifTW-Heavy.otf 75 | SourceHanSerifTW-Light.otf 76 | SourceHanSerifTW-Medium.otf 77 | SourceHanSerifTW-Regular.otf 78 | SourceHanSerifTW-SemiBold.otf 79 | --------------------------------------------------------------------------------