13bdca
.TH TTMKFDIR 1 "March 28, 2013"
13bdca
.SH NAME
13bdca
\fBttmkfdir\fR\ - Utility to create fonts.scale files for truetype fonts 
13bdca
.SH SYNOPSIS
13bdca
.B ttmkfdir
13bdca
.RB [OPTION]
13bdca
.SH DESCRIPTION
13bdca
.PP
13bdca
    Originally written by Joerg Pommnitz, ttmkfdir is a tool to create valid and complete fonts.scale file from TrueType fonts. It is very useful when you plan to use a TrueType enabled font server that is based on the X11R6 sample implementation (xfsft for instance). Great care has been taken to correctly identify the encodings that a given TrueType font supports.
13bdca
13bdca
The ttmkfdir comes with Red Hat Linux has experienced quite some modifications or improvements, include:
13bdca
13bdca
\fR\- migration to FreeType 2 library
13bdca
.TP
13bdca
\fR\- more accurate checking for big font files
13bdca
.TP
13bdca
\fR\- support for both two X core font backends, Freetype and XTT
13bdca
.TP
13bdca
\fR\- Truetype collection(ttc) font file support
13bdca
.TP
13bdca
\fR\- additional CJK friendly features
13bdca
.TP
13bdca
\fR\- bug fixes
13bdca
13bdca
 
13bdca
.SH OPTIONS
13bdca
Here is the detailed usage of Red Hat version of ttmkfdir.
13bdca
.TP
13bdca
.B -h, --help 
13bdca
It shows the menus and combo box in iok UI
13bdca
.TP
13bdca
.B -e, --encoding <encodings.dir>
13bdca
ttmkfdir is doing its job by checking each TrueType font file against fontenc layer, please refer www.xfree86.org/current/fonts.html for details. Default encodings.dir file is /usr/X11R6/lib/X11/fonts/encodings/encodings.dir
13bdca
.TP
13bdca
.B -o, --output
13bdca
Specify output, default is fonts.scale in the current directory
13bdca
.TP
13bdca
.B -d, --font-dir
13bdca
Specify TrueType font directory, default is the current directory
13bdca
.TP
13bdca
.B -f, --default-foundry
13bdca
Specify name of the default font foundry, default is "misc"
13bdca
.TP
13bdca
.B -m, --max-missing
13bdca
Specify the maximum number of missing characters per encoding, default is 5. This option applies to the encoding that has less than 256 codepoint definitions.
13bdca
.TP
13bdca
.B -a,  --max-missing-percentage
13bdca
Specify the maximum percentage of missing characters per encoding, default is 2. This option applies to the encoding that has more than 256 codepoint definitions.
13bdca
.TP
13bdca
.B -b, --font-backend
13bdca
For X FreeType backend, use value "1", for XTT backend use value "2", default value is 1. When you have TrueType Collection font(.ttc), you need to use this option.
13bdca
.TP
13bdca
.B -x, --additional-entries
13bdca
Additional entries mean those extra TTCaps stuff for XTT backend, mainly for bold and italic font support. Or for FreeType backend, because FreeType still doesn't support bold and italic font, ttmkfdir can generate extra "dummy" XLFDs, so applications who asking those fonts won't complain.
13bdca
13bdca
Default value is "0" means off,otherwise use "1" to switch it on.
13bdca
.TP
13bdca
.B -c, --completeness
13bdca
use less strict completeness tests for encoding tables
13bdca
.TP
13bdca
.B -p, --panose
13bdca
use panose information
13bdca
13bdca
.SH AUTHOR
13bdca
Yu Shao <yshao@redhat.com> and Pravin Satpute <psatpute@redhat.com>
13bdca
.PP
13bdca
.SH LICENSE
13bdca
GNU Library General Public License