Skip to content

Minimal script to subset and compress Japanese fonts for web use

Notifications You must be signed in to change notification settings

chalkygames123/japanese-fonts-subsetter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Minimal script to subset and compress Japanese fonts for web use

Resources

Stars

Watchers

Forks

Languages