1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385
|
.tr ~
.TH HPFTODIT 1 "7 November 2018" "Groff Version 1.22.3"
.SH NAME
hpftodit \- create font description files for use with groff \-Tlj4
.
.
.\" --------------------------------------------------------------------
.\" Legal Terms
.\" --------------------------------------------------------------------
.
.de co
Copyright \[co] 1994-2014 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
are preserved on all copies.
Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be included in
translations approved by the Free Software Foundation instead of in
the original English.
..
.
.\" --------------------------------------------------------------------
.\" Definitions
.\" --------------------------------------------------------------------
.
.\" Like TP, but if specified indent is more than half
.\" the current line-length - indent, use the default indent.
.de Tp
.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
.el .TP "\\$1"
..
.de CW
.ie \\n(.$>2 \&\\$1\f(CR\\$2\fP\\$3
.el \&\f(CR\\$1\fP\\$2
..
.
.tr ~
.
.\" --------------------------------------------------------------------------
.SH SYNOPSIS
.\" --------------------------------------------------------------------------
.B hpftodit
[
.B \-adqsv
]
[
.BI \-i n
]
.I tfm_file
.I map_file
.I font
.PP
It is possible to have whitespace between the
.B \-i
option and its parameter.
.
.
.\" --------------------------------------------------------------------------
.SH DESCRIPTION
.\" --------------------------------------------------------------------------
.
.B hpftodit
creates a font file for use with a Hewlett-Packard LaserJet~4\(enseries
(or newer) printer with
.BR "groff \-Tlj4" ,
using data from an HP tagged font metric (TFM) file.
.I tfm_file
is the name of the TFM file for the font; Intellifont and
TrueType TFM files are supported, but symbol set TFM files are not.
.I map_file
is a file giving the groff names for characters in the font; this file
should consist of a sequence of lines of the form:
.IP
.I
m u c1 c2 \fR.\|.\|. [
.CW #
.I comment
]
.
.
.LP
where
.I m
is a decimal integer giving the MSL number of the character,
.I u
is a hexadecimal integer giving the Unicode value of the character,
and
.IR c1 ,
.IR c2 ", .\|.\|."
are the groff names of the character.
.
The values can be separated by any whitespace; the Unicode value must
use uppercase digits A\^\(en\^F, and must be without a leading
.CW \[oq] 0x \[cq],
.CW \[oq] u \[cq],
or
.CW \[oq] U+ \[cq].
Unicode values corresponding to composite glyphs are decomposed; e.g.,
.CW \[oq] u00C0 \[cq]
becomes
.CW \[oq] u0041_0300 \[cq].
.
The name for a glyph without a groff name may be given as
.CW u \fIXXXX\fP
if the glyph corresponds to a Unicode value, or as an unnamed glyph
.CW \[oq] --- \[cq].
.
If the given Unicode value is in the Private Use Area
(0xE000\^\(en\^0xF8FF), the glyph is included as an unnamed glyph.
.
Refer to
.BR groff_diff (1)
for additional information about unnamed glyphs and how to access them.
.
.
.LP
Blank lines and lines beginning with
.CW \[oq] # \[cq]
are ignored.
.
A
.CW \[oq] # \[cq]
following one or more groff names begins a comment.
.
Because
.CW \[oq] # \[cq]
is a valid groff name, it must appear first in a list of
groff names if a comment is included, e.g.,
.IP
.CW "3 0023 # # number sign"
.LP
or
.IP
.CW "3 0023 # sh # number sign"
.LP
rather than
.IP
.CW "3 0023 sh # # number sign"
.LP
which will treat the first
.CW \[oq] # \[cq]
as the beginning of the comment.
.
.
.LP
.I font
is the name of the groff font file.
.
The groff font file is written to
.IR font ;
if
.I font
is specified as
.CW \[oq] - \[cq],
the output is written to the standard output.
.
.
.LP
The
.B \-s
option should be given if the font is special
(a font is
.I special
if
.B troff
should search it whenever
a character is not found in the current font).
.
If the font is special,
it should be listed in the
.B fonts
command in the DESC file;
if it is not special, there is no need to list it, since
.B troff
can automatically mount it when it\[aq]s first used.
.
.
.LP
If the
.B \-i
option is used,
.B hpftodit
automatically will generate an italic correction,
a left italic correction and a subscript correction
for each character
(the significance of these parameters is explained in
.BR groff_font (5)).
.
.
.\" --------------------------------------------------------------------------
.SH OPTIONS
.\" --------------------------------------------------------------------------
.
.TP
.B \-a
Include characters in the TFM file that are not included in the map
file.
.
A glyph with corresponding Unicode value is given the name
.RI u XXXX ;
a glyph without a Unicode value is included as an unnamed glyph
\&\[oq]\-\^\-\^\-\[cq].
.
A glyph with a Unicode value in the Private Use Area
(0xE000\^\(en\^0xF8FF) also is included as an unnamed glyph.
.
.IP
This option provides a simple means of adding Unicode-named and
unnamed glyphs to a font without including them in the map file, but
it affords little control over which glyphs are placed in a regular
font and which are placed in a special font.
.
The presence or absence of the
.B \-s
option has some effect on which glyphs are included: without the
.B \-s
option, only the \(lqtext\(rq symbol sets are searched for matching
glyphs; with the
.B \-s
option, only the \(lqmathematical\(rq symbol sets
are searched.
.
Nonetheless, restricting the symbol sets searched isn\[aq]t very
selective\(emmany glyphs are placed in both regular and special fonts.
.
Normally, the
.B \-a
option should be used only as a last resort.
.
.
.TP
.B \-d
Dump information about the TFM file to the standard output; this
option can be useful for ensuring that a TFM file is a proper match
for a font, and that the contents of the TFM file are suitable.
.
The information includes the values of important TFM tags, and a
listing (by MSL number for Intellifont TFM files or by Unicode value
for TrueType TFM files) of the glyphs included in the TFM file.
.
The unit of measure \[oq]DU\[cq] for some tags indicates design units;
there are 8782 design units per em for Intellifont fonts, and 2048
design units per em for TrueType fonts.
.
Note that the accessibility of a glyph depends on its inclusion in a
symbol set; some TFM files list many glyphs but only a few symbol
sets.
.
.IP
The glyph listing includes the glyph index within the TFM file, the MSL
or Unicode value, and the symbol set and character code that will be
used to print the glyph.
.
If
.I map_file
is given,
groff names are given for matching glyphs.
.
If only the glyph index and MSL or Unicode value are given, the glyph
does not appear in any supported symbol set and cannot be printed.
.
.IP
With the
.B \-d
option,
.I map_file
is optional, and
.I font
is ignored if given.
.
.TP
.B \-q
Suppress warnings about characters in the map file that were not found
in the TFM file.
.
Warnings never are given for unnamed glyphs or by glyphs named by their
Unicode values.
.
This option is useful when sending the output of
.B hpftodit
to the standard output.
.
.TP
.B \-v
Print the
.B hpftodit
version number.
.
.TP
.B \-s
The font is special.
.
This option adds the
.B special
command to the font file, and affects the order in which HP symbol sets
are searched for each glyph.
.
Without the
.B \-s
option, the \[lq]text\[rq] sets are searched before
the \[lq]mathematical\[rq] symbol sets.
With the
.B \-s
option, the search order is reversed.
.
.TP
.BI \-i n
Generate an italic correction for each character so that the
character\[aq]s width plus the character\[aq]s italic correction is
equal to
.I n
thousandths of an em plus the amount by which the right edge of the
character\[aq]s bounding is to the right of the character\[aq]s
origin.
.
If this would result in a negative italic correction, use a zero italic
correction instead.
.
.IP
Also generate a subscript correction equal to the product of the
tangent of the slant of the font and four fifths of the x-height of
the font.
.
If this would result in a subscript correction greater than the italic
correction, use a subscript correction equal to the italic correction
instead.
.
.IP
Also generate a left italic correction for each character equal to
.I n
thousandths of an em plus the amount by which the left edge of the
character\[aq]s bounding box is to the left of the character\[aq]s
origin.
.
The left italic correction may be negative.
.
.IP
This option normally is needed only with italic or oblique fonts;
a value of 50 (0.05 em) usually is a reasonable choice.
.
.
.\" --------------------------------------------------------------------------
.SH FILES
.\" --------------------------------------------------------------------------
.
.ad 0
.TP \w'\fB/usr/share/groff/1.22.3/font/devlj4/generate/\fP\,\fI*\/\fP.map'u+2n
.B /usr/share/groff/1.22.3/font/devlj4/DESC
Device description file.
.TP
.BI /usr/share/groff/1.22.3/font/devlj4/ F
Font description file for font
.IR F .
.TP
.BI /usr/share/groff/1.22.3/font/devlj4/generate/ * .map
Symbol mapping files
.
.
.\" --------------------------------------------------------------------
.SH "SEE ALSO"
.\" --------------------------------------------------------------------
.BR groff (1),
.BR groff_diff (1),
.BR grolj4 (1),
.BR groff_font (5),
.BR lj4_font (5)
.
.
.\" --------------------------------------------------------------------
.SH "COPYING"
.\" --------------------------------------------------------------------
.co
.
.
.\" Local Variables:
.\" mode: nroff
.\" End:
|