home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
517a.lha
/
FontManipulatorForDtp_v2
/
doc
/
mkmetric.doc
< prev
next >
Wrap
Text File
|
1991-06-09
|
3KB
|
91 lines
Metric file builder for PPage etc.
==================================
MkMetric V1.1 Copyright Adrian Aylward 1991
You may freely copy, use, and modify this program. The source is included
in the distribution.
This program builds a font metric file (.metric) in the format used by
Professional Page. Its input is one or more Adobe font metric (.afm)
files.
Command line interface
======================
usage:
mkmetric -options metricfile plain.afm,bold..,italic..,bolditalic..
options:
-e encodingfile
The character set encoding file. Default
"PSFonts:encoding.ps".
-f Use font specific encoding - for fonts such as "Symbol"
where the character names are non-standard.
-s Set font specific encoding. The encoding is read from the
file, but the metric is flagged as using font specific
encoding, so the font will not be recoded when it is used.
-lnnn LoChar (default 32). Character codes below this value
are ignored.
-hnnn HiChar (default 255). Character codes above this value
are ignored.
The "metricfile" argument is the name of the metric file to be created.
The second argument is a list of one or more Adobe font metric (.afm) file
names. The first is the plain version of the font, and cannot be omitted.
Then in order follow the bold, italic, and bolditalic versions. These are
optional; if some are omitted then the commas should be left as necessary
to indicate the positions of any subsequent entries.
for example:
mkmetric fonts:Benguiat.metric Benguiat-Book.afm,Benguiat-Bold.afm
mkmetric fonts:CooperBlack.metric CooperBlack.afm,,CooperBlack-Italic.afm
mkmetric fonts:Bodoni.metric <...continued on next line...>
Bodoni-Roman.afm,Bodoni-Bold, Bodoni-Italic.afm,Bodoni-BoldItalic
mkmetric fonts:BodoniPoster.metric Bodoni-Poster.afm
mkmetric -f fonts:Symbol.metric Symbol.afm
AFM file format
===============
It should work for all normal font metric files - character width is purely
horizontal (WX, not WXY), with a single writing direction, not a composite
font.
N.B. some afm files may have the character names missing. You can generate
metrics from these using the "-f" option, but it is not possible to change
the encoding.
Caveat
======
The metric file format was determined by reverse engineering. So I can't
guarantee its accurary. However it appears to work OK.
Versions
========
V1.0 03-May-91
The original.
V1.1 06-May-91
New -s option, for fonts whose encoding is not the same as in their metric
files.
Bugs fixed: syntax error with comments in encoding file.