Skip to content

Commit b39d6ad

Browse files
committed
Update the closure_glyph_keyed_segmenter_util section in the README.
1 parent 5e2bae5 commit b39d6ad

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,14 @@ In this repo 3 options are currently provided:
8585
```sh
8686
bazel run -c opt util:closure_glyph_keyed_segmenter_util -- \
8787
--input_font=$(pwd)/myfont.ttf \
88-
--number_of_segments=20 \
89-
--codepoints_file=$(pwd)/all_cps.txt \
88+
--config=path/to/config.textpb
89+
--include_initial_codepoints_in_config \
9090
--output_segmentation_plan > glyph_keyed.txtpb
9191
```
9292

93+
The closure glyph segmenter is configured via an input configuration file using the
94+
[segmenter_config.proto](util/segmenter_config.proto) schema, see the comments there for more details.
95+
9396
Note: this utility is under active development and still very experimental. See
9497
[the status section](docs/experimental/closure_glyph_segmentation.md#status) for more details.
9598

@@ -111,6 +114,10 @@ cat glyph_keyed.txtpb table_keyed.txtpb > segmentation_plan.txtpb
111114

112115
Additional tools for generating encoder configs are planned to be added in the future.
113116

117+
For concrete examples of how to generate IFT fonts, see the [IFT Demo](https://github.com/garretrieger/ift-demo).
118+
In particular the [Makefile](https://github.com/garretrieger/ift-demo/blob/main/Makefile) and the
119+
[segmenter configs](https://github.com/garretrieger/ift-demo/tree/main/config) may be helpful.
120+
114121
### Generating an IFT Encoding
115122

116123
Once an segmentation plan has been created it can be combined with the target font to produce and incremental font and collection

0 commit comments

Comments
 (0)