| 1 |
.\" $XFree86: xc/programs/mkfontscale/mkfontscale.man,v 1.4 2003/06/20 15:49:52 eich Exp $ |
| 2 |
.\" |
| 3 |
.TH MKFONTSCALE __appmansuffix__ __vendorversion__ |
| 4 |
.SH NAME |
| 5 |
mkfontscale \- create an index of scalable font files for X |
| 6 |
.SH SYNOPSIS |
| 7 |
.B mkfontscale |
| 8 |
[ |
| 9 |
.B \-b |
| 10 |
] [ |
| 11 |
.B \-s |
| 12 |
] [ |
| 13 |
.B \-o |
| 14 |
.I filename |
| 15 |
] [ |
| 16 |
.B \-x |
| 17 |
.I suffix |
| 18 |
] [ |
| 19 |
.B \-a |
| 20 |
.I encoding |
| 21 |
] \|.\|.\|. [ |
| 22 |
.B \-f |
| 23 |
.I fuzz |
| 24 |
] [ |
| 25 |
.B \-l |
| 26 |
] [ |
| 27 |
.B \-e |
| 28 |
.I directory |
| 29 |
] [ |
| 30 |
.B \-p |
| 31 |
.I prefix |
| 32 |
] [ |
| 33 |
.B \-r |
| 34 |
.I prefix |
| 35 |
] [ |
| 36 |
.B \-n |
| 37 |
.I prefix |
| 38 |
] [ |
| 39 |
.B \-u | \-U |
| 40 |
] [ |
| 41 |
.B \-v |
| 42 |
] [ |
| 43 |
.B \-\- |
| 44 |
] [ |
| 45 |
.I directory |
| 46 |
] \|.\|.\|. |
| 47 |
.SH DESCRIPTION |
| 48 |
For each directory argument, |
| 49 |
.I mkfontscale |
| 50 |
reads all of the scalable font files in the directory. For every font |
| 51 |
file found, an X11 font name (XLFD) is generated, and is written |
| 52 |
together with the file name to a file |
| 53 |
.B fonts.scale |
| 54 |
in the directory. |
| 55 |
|
| 56 |
The resulting |
| 57 |
.B fonts.scale |
| 58 |
file should be checked and possibly manually edited before being used |
| 59 |
as input for the |
| 60 |
.BR mkfontdir (__appmansuffix__) |
| 61 |
program. |
| 62 |
.SH OPTIONS |
| 63 |
.TP |
| 64 |
.B \-b |
| 65 |
read bitmap fonts. By default, bitmap fonts are ignored. |
| 66 |
.TP |
| 67 |
.B \-s |
| 68 |
ignore scalable fonts. By default, scalable fonts are read. If |
| 69 |
.B \-b |
| 70 |
is set, this flag has the side effect of enabling the reading of |
| 71 |
.B fonts.scale |
| 72 |
files. |
| 73 |
.TP |
| 74 |
.BI \-o " filename" |
| 75 |
send program output to |
| 76 |
.IR filename ; |
| 77 |
default is |
| 78 |
.B fonts.scale |
| 79 |
if bitmap fonts are not being read, and |
| 80 |
.B fonts.dir |
| 81 |
if they are. If |
| 82 |
.I filename |
| 83 |
is relative, it is created in the directory being processed. If it is |
| 84 |
the special value |
| 85 |
.BR \- , |
| 86 |
output is written to standard output. |
| 87 |
.TP |
| 88 |
.BI \-x " suffix" |
| 89 |
exclude all files with the specified |
| 90 |
.IR suffix . |
| 91 |
.TP |
| 92 |
.BI \-a " encoding" |
| 93 |
add |
| 94 |
.I encoding |
| 95 |
to the list of encodings searched for. |
| 96 |
.TP |
| 97 |
.BI \-f " fuzz" |
| 98 |
set the fraction of characters that may be missing in large encodings to |
| 99 |
.I fuzz |
| 100 |
percent. Defaults to 2%. |
| 101 |
.TP |
| 102 |
.B \-l |
| 103 |
Write |
| 104 |
.B fonts.dir |
| 105 |
files suitable for implementations that cannot re-encode legacy fonts |
| 106 |
(BDF and PCF). By default, it is assumed that the implementation can |
| 107 |
re-encode Unicode-encoded legacy fonts. |
| 108 |
.TP |
| 109 |
.B -e |
| 110 |
specifies a directory with encoding files. Every such |
| 111 |
directory is scanned for encoding files, the list of which is then |
| 112 |
written to an "encodings.dir" file in every font directory. |
| 113 |
.TP |
| 114 |
.B -p |
| 115 |
Specifies a prefix that is prepended to the encoding file path names |
| 116 |
when they are written to the "encodings.dir" file. The prefix is |
| 117 |
prepended literally: if a `/' is required between the prefix and the path |
| 118 |
names, it must be supplied explicitly as part of the prefix. |
| 119 |
.TP |
| 120 |
.B \-r |
| 121 |
Keep non-absolute encoding directories in their relative form when |
| 122 |
writing the "encodings.dir" file. The default is to convert relative |
| 123 |
encoding directories to absolute directories by prepending the current |
| 124 |
directory. The positioning of this options is significant, as this |
| 125 |
option only applies to subsequent |
| 126 |
.B \-e |
| 127 |
options. |
| 128 |
.TP |
| 129 |
.B \-n |
| 130 |
do not scan for fonts, do not write font directory files. This option |
| 131 |
is useful when generating encoding directories only. |
| 132 |
.TP |
| 133 |
.B \-u, \-U |
| 134 |
disable (\fI-u\fP) or enable (\fI-U\fP) indexing of ISO 10646:1 font |
| 135 |
encodings (default: enabled). |
| 136 |
.TP |
| 137 |
.B \-v |
| 138 |
print program version and exit. |
| 139 |
.TP |
| 140 |
.B \-\- |
| 141 |
end of options. |
| 142 |
.SH SEE ALSO |
| 143 |
X(__miscmansuffix__), Xserver(__appmansuffix__), mkfontdir(__appmansuffix__), ttmkfdir(__appmansuffix__), xfs(__appmansuffix__), xset(__appmansuffix__) |
| 144 |
.SH NOTES |
| 145 |
The format of the |
| 146 |
.BR fonts.scale , |
| 147 |
.B fonts.dir |
| 148 |
and |
| 149 |
.B encodings.dir |
| 150 |
files is documented in the mkfontdir(__appmansuffix__) manual page. |
| 151 |
|
| 152 |
.B Mkfontscale |
| 153 |
will overwrite any |
| 154 |
.B fonts.scale |
| 155 |
file even if it has been hand-edited. |
| 156 |
|
| 157 |
.B mkfontscale -b -s -l |
| 158 |
is equivalent to |
| 159 |
.BR mkfontdir . |
| 160 |
.SH AUTHOR |
| 161 |
The version of |
| 162 |
.B mkfontscale |
| 163 |
included in this X.Org Foundation release was originally written by |
| 164 |
Juliusz Chroboczek <[email protected]> for the XFree86 project. The |
| 165 |
functionality of this program was inspired by the |
| 166 |
.B ttmkfdir |
| 167 |
utility by Joerg Pommnitz. |