From 3ca274d2df004ddd1f624f39a2c1be5a720636df Mon Sep 17 00:00:00 2001 From: saltcandy123 Date: Fri, 10 Dec 2021 18:40:49 +0900 Subject: [PATCH] Update README --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index c57d441..6ffb11d 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ This is a handwritten font created by @saltcandy123. - Glyphs: [`glyphs/hiragana`](glyphs/hiragana) - (U+30A0 - U+30FF) Katakana - Glyphs: [`glyphs/katakana`](glyphs/katakana) +- (U+4E00 - U+9FFF) CJK Unified Ideographs + - Glyphs: [`glyphs/cjk-unified-ideographs`](glyphs/cjk-unified-ideographs) + - Supporting only a small set of characters - (U+FF00 - U+FFEF) Halfwidth and Fullwidth Forms - Glyphs: [`glyphs/halfwidth-and-fullwidth-forms`](glyphs/halfwidth-and-fullwidth-forms) - Excluding halfwidth Hangul variants and halfwidth symbol variants (U+FFA0 - U+FFDC, U+FFE8 - U+FFEE) @@ -30,3 +33,29 @@ This is a handwritten font created by @saltcandy123. - **[`scripts/clean_glyphs.py`](scripts/clean_glyphs.py)** cleans SVG files by removing extra data from SVG. - **[`scripts/build-dist.sh`](scripts/build-dist.sh)** builds distribution files under `dist` directory. - **[`scripts/generate-fontimage.sh`](scripts/generate-fontimage.sh)** produces a font thumbnail image. + +## How to add a glyph + +```bash +## Create a directory under "glyphs" +mkdir -p glyphs/draft + +## Create an empty SVG file +cat <glyphs/draft/u5b57.svg + + +EOF + +## Add template lines +python scripts/clean_glyphs.py glyphs/draft --with-template + +## Draw outlines on your SVG editor (e.g. inkscape) +inkscape glyphs/draft/u5b57.svg + +## Erase template lines +python scripts/clean_glyphs.py glyphs/draft + +## Build a font file +python scripts/build_font.py -o saltcandy123font.ttf +```