Document the subsetter argument of record-test.sh

This commit is contained in:
David Corbett 2022-06-24 20:18:10 -04:00 committed by Behdad Esfahbod
parent 2674962cf5
commit e35cfb4bde
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ FontTools from <https://github.com/behdad/fonttools>.
To use `record-test.sh`, just put it right before the `hb-shape` invocation:
```sh
$ ./hb-unicode-encode 41 42 43 627 | ./record-test.sh ../../util/hb-shape font.ttf
$ ./hb-unicode-encode 41 42 43 627 | ./record-test.sh ../../util/hb-subset ../../util/hb-shape font.ttf
```
what this does is:
* Subset the font for the sequence of Unicode characters requested,
@ -28,7 +28,7 @@ what this does is:
to an existing or new test file in `data/in-house/tests` using `-o`,
e.g.:
```sh
$ ./hb-unicode-encode 41 42 43 627 | ./record-test.sh -o data/in-house/tests/test-name.test ../../util/hb-shape font.ttf
$ ./hb-unicode-encode 41 42 43 627 | ./record-test.sh -o data/in-house/tests/test-name.test ../../util/hb-subset ../../util/hb-shape font.ttf
```
If you created a new test file, add it to `data/in-house/Makefile.sources`