.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.48) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "HACKOS2 1" .TH HACKOS2 1 2026-10-03 "perl v5.44.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME hackos2 \- edit the OS/2 table in a TrueType Font .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 2 \& HACKOS2 [\-c hex] [\-d directory] [\-f fsSelection] [\-p hex] [\-q] \& [\-t num] [\-u hex] [\-w width] .Ve .PP Hacks the OS/2 table of a ttf file copying from infile to outfile. .SH OPTIONS .IX Header "OPTIONS" .Vb 10 \& \-c change codepage information (a 64 bit hex number) \& \-d specifies output directory for processing multiple files. In which \& case is not used and 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 .Ve .PP For example, to convert a Win3.1 ANSI font to Win95 use the following: .PP .Vb 1 \& hackos2 \-c01 \-u03 old.ttf new.ttf .Ve .PP or for a Symbol font use: .PP .Vb 1 \& hackos2 \-c80000000 \-u0 old.ttf new.ttf .Ve .PP Or to revert: .PP .Vb 1 \& hackos2 \-cnone other.ttf new.ttf .Ve .SH AUTHOR .IX Header "AUTHOR" v1.9, 12\-NOV\-2014 .PP Martin Hosken . (see CONTRIBUTORS for other authors). .SH LICENSING .IX Header "LICENSING" Copyright (c) 1998\-2016, SIL International (http://www.sil.org) .PP 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.