NAME

hackos2 - edit the OS/2 table in a TrueType Font

SYNOPSIS

HACKOS2 [-c hex] [-d directory] [-f fsSelection] [-p hex] [-q]
        [-t num] [-u hex] [-w width] <infile> <outfile>

Hacks the OS/2 table of a ttf file copying from infile to outfile.

OPTIONS

-c      change codepage information (a 64 bit hex number)
-d      specifies output directory for processing multiple files. In which
        case <outfile> is not used and <infile> may be a list including
        wildcards.
-f      fsSelection value (16 bit hex) (e.g. 4240 for Thai fonts)
-n      sets usFirstCharIndex given a hex value
-p      change panose info
            (10 bytes of hex in reverse order: 0A090807060504030201)
-q      Quiet mode (do not list names as they are processed)
-t      Sets fsType (embedding) information (decimal)
-u      change unicode info (a 128 bit hex number)
-v      sets vendor tag to the first 4 chars of the string
-w      set average char width (decimal)
-x      sets usLastCharIndex given a hex value

For example, to convert a Win3.1 ANSI font to Win95 use the following:

hackos2 -c01 -u03 old.ttf new.ttf

or for a Symbol font use:

hackos2 -c80000000 -u0 old.ttf new.ttf

Or to revert:

hackos2 -cnone other.ttf new.ttf

AUTHOR

v1.9, 12-NOV-2014

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

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.