OS Manuals

ttfascent(1)

ttfascent - sets ascent and descent of a TrueType font

TTFASCENT(1) User Contributed Perl Documentation TTFASCENT(1)

ttfascent - sets ascent and descent of a TrueType font

ttfascent [-a num] [-d num] [-l num] infile [outfile]

Opens infile (a .ttf file) changes the ascent and descent values in the Hhea and OS/2 table and then writes the resulting file to outfile if specified.

  -a num    Sets the ascent value to this number of em units
  -d num    Sets the descent value to this number of em units. This value is
            usually positive.
  -l num    Sets the typographical line gap in the OS/2 table.

Setting the ascent and descent values of a font is a fiddly business. This program sets the values in their default relationship.

Martin Hosken <http://scripts.sil.org/FontUtils>. (see CONTRIBUTORS for other authors).

Copyright (c) 1998-2016, SIL International (http://www.sil.org)

This script is released under the terms of the Artistic License 2.0. For details, see the full text of the license in the file LICENSE.

2026-10-03 perl v5.44.0

perl-font-ttf-scripts 1.06-r0 · os · ingested 2026-10-04