Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ttmkfdir(1) [centos man page]

TTMKFDIR(1)						      General Commands Manual						       TTMKFDIR(1)

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

Check Out this Related Man Page

MKFONTSCALE(1)						      General Commands Manual						    MKFONTSCALE(1)

NAME
mkfontscale - create an index of scalable font files for X SYNOPSIS
mkfontscale [ -b ] [ -s ] [ -o filename ] [ -x suffix ] [ -a encoding ] ... [ -f fuzz ] [ -l ] [ -e directory ] [ -p prefix ] [ -r prefix ] [ -n prefix ] [ -- ] [ directory ] ... DESCRIPTION
For each directory argument, mkfontscale reads all of the scalable font files in the directory. For every font file found, an X11 font name (XLFD) is generated, and is written together with the file name to a file fonts.scale in the directory. The resulting fonts.scale file should be checked and possibly manually edited before being used as input for the mkfontdir(1) program. OPTIONS
-b read bitmap fonts. By default, bitmap fonts are ignored. -s ignore scalable fonts. By default, scalable fonts are read. If -b is set, this flag has the side effect of enabling the reading of fonts.scale files. -o filename send program output to filename; default is fonts.scale if bitmap fonts are not being read, and fonts.dir if they are. If filename is relative, it is created in the directory being processed. If it is the special value -, output is written to standard output. -x suffix exclude all files with the specified suffix. -a encoding add encoding to the list of encodings searched for. -f fuzz set the fraction of characters that may be missing in large encodings to fuzz percent. Defaults to 2%. -l Write fonts.dir files suitable for implementations that cannot reencode legacy fonts (BDF and PCF). By default, it is assumed that the implementation can reencode Unicode-encoded legacy fonts. -e specifies a directory with encoding files. Every such directory is scanned for encoding files, the list of which is then written to an "encodings.dir" file in every font directory. -p Specifies a prefix that is prepended to the encoding file path names when they are written to the "encodings.dir" file. The prefix is prepended literally: if a `/' is required between the prefix and the path names, it must be supplied explicitly as part of the prefix. -r Keep non-absolute encoding directories in their relative form when writing the "encodings.dir" file. The default is to convert rel- ative encoding directories to absolute directories by prepending the current directory. The positioning of this options is signifi- cant, as this option only applies to subsequent -e options. -n do not scan for fonts, do not write font directory files. This option is useful when generating encoding directories only. -- end of options. SEE ALSO
X(7), Xserver(1), mkfontdir(1), ttmkfdir(1), xfs(1), xset(1) NOTES
The format of the fonts.scale, fonts.dir and encodings.dir files is documented in the mkfontdir(1) manual page. Mkfontscale will overwrite any fonts.scale file even if it has been hand-edited. mkfontscale -b -s -l is equivalent to mkfontdir. AUTHOR
The version of mkfontscale included in this X.Org Foundation release was originally written by Juliusz Chroboczek <jch@freedesktop.org> for the XFree86 project. The functionality of this program was inspired by the ttmkfdir utility by Joerg Pommnitz. X Version 11 mkfontscale 1.1.0 MKFONTSCALE(1)
Man Page