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