Actions
Feature #32
openGenerate afm metrics
Feature #32:
Generate afm metrics
Status:
New
Priority:
Normal
Assignee:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
ttf2afm gives output that contains widths of all grlyphs. This information is required to embed fonts in PDF.
To calculate the width:
- Get the
unitsPerEmfrom theheadtable. - Get advanced width for each glyph from the
hmtxtable.
Calculate:
n remainder(n, unitsPerEm) 1000
f(n) := (----------) 1000 + ------------------------------
unitsPerEm unitsPerEm
where n is the advanced width.
No data to display
Actions