-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare-font: add docs about XML preparation
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |