Skip to content

Commit

Permalink
prepare-font: add docs about XML preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Mar 5, 2017
1 parent 0bc2f18 commit 9188154
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/prepare-font.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
How to prepare XML from TTF
===========================

1. To gather font metrics:
```console
$ ttf2tfm filename.ttf -v filename.vpl
$ tftopl filename.tfm > filename.tpl
```
That will generate `filename.tfm` (binary) and `filename.vpl`, `filename.tpl`
(text).

`ttf2tfm` and `tftopl` are parts of the standard TeX distribution (at least
TeX Live).
2. May be helpful:
```console
$ ttx filename.ttf
```

That will generate `filename.ttx` (XML).

[ttx][]

[ttx]: https://github.com/fonttools/fonttools

0 comments on commit 9188154

Please sign in to comment.