compreffor - Man Page

CFF table subroutinizer for FontTools

Synopsis

compreffor [-h] [-v] [-c] [-d] [-n NROUNDS] [-m MAX_SUBRS] [--generate-cff] [--py] [--chunk-ratio CHUNK_RATIO] [-p PROCESSES] INPUT [OUTPUT]

Description

FontTools Compreffor will take a CFF-flavored OpenType font and automatically detect repeated routines and generate subroutines to minimize the disk space needed to represent a font.

Options

Positional Arguments

INPUT

Path to the input font file

OUTPUT

Path to the compressed file (default: *.compressed.otf)

Optional Arguments

-h--help

Show a help message and exit

-v--verbose

Print more messages to stdout; use it multiple times to increase the level of verbosity

-c--check

Verify that the outputted font is valid and functionally equivalent to the input

-d--decompress

Decompress source before compressing (necessary if there are subroutines in the source)

-n NROUNDS--nrounds NROUNDS

The number of iterations to run the algorithm (default: 4)

-m MAX_SUBRS--max_subrs MAX_SUBRS

Limit to the number of subroutines per INDEX (default: 65533)

--generate-cff

Also save binary CFF table data as INPUT.cff

--py

Use pure Python method, instead of C++ extension

Options for Pure Python Method

--chunk-ratio CHUNK_RATIO

Specify the percentage size of the job chunks used for parallel processing (0 < float <= 1; default: 0.1)

-p PROCESSES--processes PROCESSES

Specify number of concurrent processes to run. Use value 1 to perform operation serially (default: 12)

Info

August 2021