HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fonttools — Manipulate fonts in Python. More information: <https://fonttools.readthedocs.io/en/latest/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfonttoolsfontspythonmanipulatecliinformationmore
linux

Problem

How to use the fonttools command: Manipulate fonts in Python. More information: <https://fonttools.readthedocs.io/en/latest/>.

Solution

fonttools — Manipulate fonts in Python. More information: <https://fonttools.readthedocs.io/en/latest/>.

Subset a TTF font file to the Basic Latin Unicode block:
fonttools subset {{path/to/font.ttf}} --unicodes=U+0000-007F


Display help:
fonttools --help

Code Snippets

Subset a TTF font file to the Basic Latin Unicode block

fonttools subset {{path/to/font.ttf}} --unicodes=U+0000-007F

Display help

fonttools --help

Context

tldr-pages: linux/fonttools

Revisions (0)

No revisions yet.