OS Manuals

/opt/chainguard/gftools/bin/gftools-autohint

Google Fonts Tools: build, fix, check and package fonts for the Google Fonts library

From gftools 0.10.8-r0 (os), captured 2026-11-05 by running gftools-autohint --help (exit 0). permalink

usage: gftools-autohint [-h] [--fail-ok] [--auto-script] [--discount-latin] [--args ARGS]
                        [--output OUTPUT]
                        FONT

Automatically hint a TrueType font

positional arguments:
  FONT                 Font to hint

options:
  -h, --help           show this help message and exit
  --fail-ok            If the autohinting fails, copy the input file to the output
  --auto-script        Automatically determine the script for key glyphs
  --discount-latin     When determining the script, ignore Latin glyphs
  --args ARGS          Any additional arguments to pass to ttfautohint
  --output, -o OUTPUT  File to save the autohinted font (may be same as input). Defaults to same
                       as input.

###############################################################################
gftools-autohint provides a wrapper around ttfautohint. We do this
for three reasons:

1) Installing gftools gives you the latest version of ttfautohint,
but the Python module we install does not provide a ttfautohint binary.
This script allows you to call the latest ttfautohint from the command
line.

2) ttfautohint does not allow you to save the autohinted output font
with the same path as the input font, requiring you to do boring
renaming dances. This script deals with that for you.

3) ttfautohint has a -D parameter to choose the default script for
OpenType features. gftools-autohint can determine this script
automatically.
Options (6)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
--fail-okIf the autohinting fails, copy the input file to the outputhelp
--auto-scriptAutomatically determine the script for key glyphshelp
--discount-latinWhen determining the script, ignore Latin glyphshelp
--args ARGSAny additional arguments to pass to ttfautohinthelp
--output, -o OUTPUTFile to save the autohinted font (may be same as input).help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.