/japanese-fonts-subsetter

Minimal script to subset and compress Japanese fonts for web use

Primary LanguageShell

Japanese Fonts Subsetter

Minimal script to subset and compress Japanese fonts for web use

Prerequisites

Getting started

Run poetry install to install dependencies.

Usage

First, create a src/ directory and put the font files you want to subset there.

Then run poetry run ./subset to subset the font files or poetry run ./compress to compress the font files.

Note

Note that by default the subsets include:

  • all single-byte characters in Shift_JIS except control characters.
  • all double-byte characters in Shift_JIS except JIS level-2, level-3 and level-4 kanji.

You can edit chars.txt to include or exclude characters you want.

References