e982c2
.TH TTMKFDIR 1 "March 28, 2013"
e982c2
.SH NAME
e982c2
\fBttmkfdir\fR\ - Utility to create fonts.scale files for truetype fonts 
e982c2
.SH SYNOPSIS
e982c2
.B ttmkfdir
e982c2
.RB [OPTION]
e982c2
.SH DESCRIPTION
e982c2
.PP
e982c2
    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.
e982c2
e982c2
The ttmkfdir comes with Red Hat Linux has experienced quite some modifications or improvements, include:
e982c2
e982c2
\fR\- migration to FreeType 2 library
e982c2
.TP
e982c2
\fR\- more accurate checking for big font files
e982c2
.TP
e982c2
\fR\- support for both two X core font backends, Freetype and XTT
e982c2
.TP
e982c2
\fR\- Truetype collection(ttc) font file support
e982c2
.TP
e982c2
\fR\- additional CJK friendly features
e982c2
.TP
e982c2
\fR\- bug fixes
e982c2
e982c2
 
e982c2
.SH OPTIONS
e982c2
Here is the detailed usage of Red Hat version of ttmkfdir.
e982c2
.TP
e982c2
.B -h, --help 
e982c2
It shows the menus and combo box in iok UI
e982c2
.TP
e982c2
.B -e, --encoding <encodings.dir>
e982c2
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
e982c2
.TP
e982c2
.B -o, --output
e982c2
Specify output, default is fonts.scale in the current directory
e982c2
.TP
e982c2
.B -d, --font-dir
e982c2
Specify TrueType font directory, default is the current directory
e982c2
.TP
e982c2
.B -f, --default-foundry
e982c2
Specify name of the default font foundry, default is "misc"
e982c2
.TP
e982c2
.B -m, --max-missing
e982c2
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.
e982c2
.TP
e982c2
.B -a,  --max-missing-percentage
e982c2
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.
e982c2
.TP
e982c2
.B -b, --font-backend
e982c2
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.
e982c2
.TP
e982c2
.B -x, --additional-entries
e982c2
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.
e982c2
e982c2
Default value is "0" means off,otherwise use "1" to switch it on.
e982c2
.TP
e982c2
.B -c, --completeness
e982c2
use less strict completeness tests for encoding tables
e982c2
.TP
e982c2
.B -p, --panose
e982c2
use panose information
e982c2
e982c2
.SH AUTHOR
e982c2
Yu Shao <yshao@redhat.com> and Pravin Satpute <psatpute@redhat.com>
e982c2
.PP
e982c2
.SH LICENSE
e982c2
GNU Library General Public License