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