doc: fix fonts where the scale (unitsPerEm) is not 1000
commitceabd83dcf6c97d71fe407fb453f0449d6ef3a56
authorH. Peter Anvin <hpa@zytor.com>
Mon, 10 Apr 2017 22:21:04 +0000 (10 15:21 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 10 Apr 2017 22:21:04 +0000 (10 15:21 -0700)
tree132f27b9026a259357b06a472fdfa3cd53d2ddaf
parenta959e3085dca628f8dddde9cf18f93a34fd53d37
doc: fix fonts where the scale (unitsPerEm) is not 1000

AFM metrics always have 1000 font units to a scaled PostScript point,
but TTF/OTF doesn't have to.  The easiest way (and the one which
best avoids unnecessary rounding) is to store the scale in the
metrics, and change pswidth.ph to return the width in PostScript
points instead of font units.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
doc/afmmetrics.ph
doc/genps.pl
doc/pswidth.ph
doc/ttfmetrics.ph