/font-slice

font-slice is a tool for splitting font. font-slice generate 120 font subsets and a css file.

Primary LanguagePythonMIT LicenseMIT

font-slice

font-slice is a tool for splitting font. font-slice generate 120 font subsets and a css file.

Requirements

  • Python >= 3.6

Installation

pip install font-slice

Usage

fontslice /path/to/font.otf
fontslice /path/to/font.otf --output-dir style
fontslice /path/to/font.otf --text-file /path/to/text.txt
fontslice /path/to/font.otf --text 'ABCD'
fontslice /path/to/font.otf --weight bold

Test

pip install tox
tox