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