Project

General

Profile

Actions

Feature #32

open

Generate afm metrics

Feature #32: Generate afm metrics

Added by Eugen Wissner about 8 hours ago.

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 unitsPerEm from the head table.
  • Get advanced width for each glyph from the hmtx table.

Calculate:

                     n               remainder(n, unitsPerEm) 1000
        f(n) := (----------) 1000 + ------------------------------
                 unitsPerEm                  unitsPerEm

where n is the advanced width.

No data to display

Actions

Also available in: PDF Atom