Skip to content

Commit

Permalink
Document subset operation options
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyDaMa committed Sep 10, 2024
1 parent 455c61a commit d975503
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/gftools-builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,21 @@ build process by leaving a `graph.png` file in the `sources` directory:
- *subspace*: Runs `fonttools varLib.instancer` to subspace a variable font according to the values in `axes`. `args` are added to the command line.
- *hbsubset*: Uses `hb-subset` to slim down a font binary.
- *addSubset*: Adds a subset from another font using `gftools-add-ds-subsets`
- `directory`: the intermediary folder used to store the source(s) the subset(s) is taken from
- `subsets`: a list of subset configurations to merge in
- `from` (required): can be a pre-configured Noto source ("Noto Sans", "Noto Serif", "Noto Sans Devanagari", "Noto Sans Linear B"), or:
- `repo`: the GitHub slug for the repository, e.g. `googlefonts/gftools`. You can specify a git revision by suffixing this with `@v1.0.0`, or use `@latest` for the latest *published* release
- `path`: the path within the repo that has the source file
- `name`: a named Google Fonts subset, e.g. `GF_Latin_Core`
- `ranges`: a list unicode codepoint range to include
- `start`: the start of the range (as hex or decimal)
- `end`: the end of the range (as hex or decimal)
- `layoutHandling`: "subset", "closure" or "ignore" ([further reading](https://github.com/googlefonts/ufomerge/blob/bb9a82ff3039b8aa0cba58372158bd3c0e5cb770/Lib/ufomerge/__init__.py#L512-L521))
- `force`: replace existing glyphs in your sources, instead of skipping them
- `exclude_glyphs`: whitespace-delimited glyph names to exclude from merging
- `exclude_glyphs_file`: path to a file with glyphs names to exclude from merging, one per line (comments using `#` or `//` allowed)
- `exclude_codepoints`: whitespace-delimited unicode codepoints to exclude from merging
- `exclude_codepoints_file`: path to a file with with unicode codepoints to exclude from merging, one per line (comments using `#` or `//` allowed)
- *buildVTT*: Uses `gftools-build-vtt` with the configuration file provided in `vttfile` to add VTT hinting to a font binary.
- *remap*: Uses `gftools-remap-font` to alter a font binary's `cmap` table.
- *paintcompiler*: Runs paintcompiler on a font to add a COLRv1 table.
Expand Down

0 comments on commit d975503

Please sign in to comment.