ruby-font-creator
ruby-font-creator copied to clipboard
Generate rich Unicode open fonts with custom annotations, transliterations, pronunciations.
Ruby Font Creator
Font creator to help students learn and read foreign languages faster by appending pronunciation or meaning to each glyph.
Features
languages | preview | state | repository | base-font |
---|---|---|---|---|
Chinese | ![]() |
βοΈ | hanzi-pinyin-font | DroidSansFallbackFull |
Tifinagh | - | πβ | hanzi-pinyin-font | DroidSansFallbackFull |
:speaking_head: request new one | - | - | - | Please provide an open-source font |
Legend: βΈβ **πβ**β βοΈ
Install
Requirements: nodejs
, yarn
or npm
.
yarn install
Usage
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'
:information_source: maintenance tasks available are in the [makefile][./makefile], run make
to see possible actions.
Data Structure
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"
}
]
Font
This project use fonts under open-source licenses : DejaVuSans, DroidSansFallbackFull, Noto Sans CJK.