Font creator to help students learn and read foreign languages faster by appending pronunciation or meaning to each glyph.
This archive contains additional font files used in the samplers: PinyinFonts.zip
The base fonts they are created from are shown in font_summary.md.
- Font file: Pinyin-Tigris-Bottom-Handwritten.ttf
- Font file: Pinyin-Tigris-Left-Handwritten.ttf
- Font file: Pinyin-Tigris-Top-Handwritten.ttf
- Font file: Pinyin-Leo-Bottom-Serif.ttf
- Font file: Pinyin-Leo-Left-Serif.ttf
- Font file: Pinyin-Leo-Top-Serif.ttf
- Font file: Pinyin-Onca-Bottom-Serif.ttf
- Font file: Pinyin-Onca-Left-Serif.ttf
- Font file: Pinyin-Onca-Top-Serif.ttf
- Font file: Pinyin-Catus-Bottom-Sans.ttf
- Font file: Pinyin-Catus-Left-Sans.ttf
- Font file: Pinyin-Catus-Top-Sans.ttf
-
The code runs tvery slowly. In Windows or GitHub Codespaces or Google Colab, cannot finish. Only ways to build full fonts is using GitHub Action.
-
On Windows, best to use VS Code WLS Extension, and connect to Window Subsysem Linux to develop. Otherwise, Node and Python code is hard to run together.
languages | preview | state | repository | base-font |
---|---|---|---|---|
Chinese | ✔️ | hanzi-pinyin-font | DroidSansFallbackFull | |
Tifinagh | - | 🏃 | hanzi-pinyin-font | DroidSansFallbackFull |
🗣️ request new one | - | - | - | Please provide an open-source font |
Legend: ⏸→ 🏃→ ✔️
Requirements: nodejs
, yarn
or npm
.
yarn install
Requirements: a JSON
file describing codepoint-glyph-gloss tuple (e.g. src/data.json).
yarn build
Custom config:
yarn build --config ./src/config/default.js
Custom data:
yarn build --data ./path-to/data.json
Custom Font Name:
yarn build --font-name 'custom-font-name'
ℹ️ maintenance tasks available are in the [makefile][./makefile], run make
to see possible actions.
A list of objects, each describing a glyph, with the following 3 elements:
- a unicode
codepoint
; - a base
glyph
; - a
ruby
text.
Example:
[
{
"codepoint": "U+03B1",
"glyph": "α",
"ruby": "alpha"
}
]
This project use fonts under open-source licenses : DejaVuSans, DroidSansFallbackFull, Noto Sans CJK.