TTFREMAP(1) User Contributed Perl Documentation TTFREMAP(1)

# [NAME](#NAME)

ttfremap - remaps the cmap of a TrueType Font

# [SYNOPSIS](#SYNOPSIS)

```
    TTFRemap -c file [-r] [-s | -u] <infile> <outfile>
```

# [OPTIONS](#OPTIONS)

```
  -r      Replace (copy the old cmap before mapping)
  -s      Convert to symbol encoding
  -u      Convert to UGL encoding
```

# [DESCRIPTION](#DESCRIPTION)

Remaps the MS cmap of a font without removing any glyphs. Updates the OS/2 table according to first and last char of new cmap. The changes file consists of lines of any of the following forms:

```
    uni_first, uni_to
    uni_first, uni_last, uni_to
    g, gid_first, uni_to
    g, gid_first, gid_last, uni_to
    n, name_first, uni_to
    n, name_first, name_last, uni_to
```

where uni\_first (gid\_first) is the first of a range of Unicodes (glyph IDs) in the source font, uni\_last (gid\_last) is the last of that range (if not specified, default is same as uni\_first (gid\_last)), and uni\_to is the start of the sequential set of Unicodes that will be altered in the output cmap so they map to the specified range. NOTE: Unicode values should be in hex, glyph IDs are decimal, names are simple strings.

# [SEE ALSO](#SEE_ALSO)

ttfbuilder

# [AUTHOR](#AUTHOR)

Martin Hosken &lt;http://scripts.sil.org/FontUtils&gt;. (see CONTRIBUTORS for other authors).

# [LICENSING](#LICENSING)

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

---

Document: ttfremap(1) from perl-font-ttf-scripts 1.06-r0 (Chainguard OS)
