Martin Hosken > Font-TTF-Scripts-0.8a > scripts/ttfremap

Download:
Font-TTF-Scripts-0.8a.tar.gz

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: Font-TTF-Scripts-0.13

TITLE ^

ttfremap - remaps the cmap of a TrueType Font

SYNOPSIS ^

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

OPTIONS ^

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

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

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.

SEE ALSO ^

ttfbuilder