Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subset merger #730

Merged
merged 3 commits into from
Sep 21, 2023
Merged

Add subset merger #730

merged 3 commits into from
Sep 21, 2023

Conversation

simoncozens
Copy link
Contributor

This is a tool I have been using as part of the notobuilder to add (usually Latin) subsets from one font into another. The existing font needs to be in Designspace format. This is expected to be part of the new builder.

Example:

gftools-add-ds-subsets --from "Noto Sans" --name "GF_Latin_Core" -o full/MyFont.designspace MyFont.designspace

@simoncozens simoncozens marked this pull request as ready for review September 20, 2023 11:50
simoncozens added a commit that referenced this pull request Sep 20, 2023
simoncozens added a commit that referenced this pull request Sep 21, 2023
simoncozens added a commit that referenced this pull request Sep 21, 2023
simoncozens added a commit that referenced this pull request Sep 21, 2023
@simoncozens simoncozens merged commit cc53fb5 into main Sep 21, 2023
9 checks passed
@simoncozens simoncozens deleted the add-ds-subset branch September 21, 2023 15:43
simoncozens added a commit that referenced this pull request Sep 22, 2023
simoncozens added a commit to simoncozens/gftools that referenced this pull request Sep 27, 2023
simoncozens added a commit to simoncozens/gftools that referenced this pull request Sep 27, 2023
simoncozens added a commit that referenced this pull request Oct 26, 2023
m4rc1e pushed a commit that referenced this pull request Dec 13, 2023
simoncozens added a commit that referenced this pull request Feb 12, 2024
simoncozens added a commit that referenced this pull request Feb 12, 2024
simoncozens added a commit that referenced this pull request Feb 12, 2024
simoncozens added a commit that referenced this pull request Feb 28, 2024
simoncozens added a commit that referenced this pull request Mar 12, 2024
* WIP new builder

* These modules are now an integral part of the builder

* Add subset adder (needs merge of #730)

* Various noto fixes

* Actually use tempdir for temporaries

* Change case of recipe_provider to match others

* Fix instance directory

* Fix paths in noto builder

* Include the googlefonts/ targets for noto

* Fix building STAT tables

* Add some validation for TTF builds

* Comments

* Compatibility with older Pythons

* Build UI VFs

* Use temporary directory for stamp files

* Move main function

* Fix command-line args

* Build web fonts

* Correct ninja syntax on Windows

* Continue losing on Windows

* Allow passing a dict config

* Allow ints as well as hexints in subset YAML (for machine-generated configs)

* Use JSON format UFOs for intermediaries, fixes #731

* Properly save JSON-based subset UFOs

* Fix fontmake arguments

* Everyone gets a STAT table!

* Add --include-source-fixes when fixing googlefonts outputs

* Call ninja and report exit status

* Don't pass argv to ninja

* Don’t do STAT inplace

* Allow other args to subspacer

* cmap remapper

* I believe this makes buildSTAT work everywhere

* Deepcopy steps so the YAML doesn't go all referency with --generate

* Allow disabling buildWebfont!

* Allow source->operation->source

* Keep notdef outline, saves a FAIL

* Add a --deep option to remap inside GSUB

* Pass --deep option to remap

* [builder2] Pass --glyph-data to fontmake when converting glyphs to ufo (#743)

This seems to have been dropped during the refactoring.

* Support glyphspackage

* Quieten fontmake jobs

* Use a jobrunner to quieten successful jobs and highlight failing ones

* Add a build-vtt utility and operation

* Port more options from the old builder

* glyphData is an array

* glyphData is an array, and only for Glyphs sources

* Handier error message format

* Let's not autohint OTFs

* Don't run buildSTAT on woff2 as well

* Documentation

* Additional docs about recipe overrides

* This seems to be needed?

* Better handle recipe provider inheritance

* Black

* Use strictYAML, first step in getting proper validation

* Consistently use "args", not "fontmake_args", "fixargs" etc.

* Use schema to validate

* Fix up notobuilder after strictYAMLification

* This is yucky.

* black

* Autohint OTF

* Move base schema to .schema, rename GF schema

* Allow postprocess-only overrides

* StrictYAML has made things confusing, use typing to help

* Reformat with black

* More strictyaml fixes

* Make --generate work again with strictyaml

* Everything that comes from .config is strictYAML now and needs .data

* Revalidate STAT to schema

* Make STAT values optional

* More StrictYAML pollution

* More StrictYAML pollution

* More StrictYAML pollution, needed for UIVFs

* Cope with the same step being in a recipe twice

* Fail early on silly graphs

* gf recipe: fix revalidate stat tables

* gf recipe: fix flag typo

* gf recipe: toggle compatibility check for ds sources as well

* add missing import

* autohintOTF: use --no-sonzes-stems if dflt fails

* fix string concat

* fix typo

* Allow extra fontmake args in config file

* Fix more StrictYAML annoyance

* Add remap layout operation

* Allow the use of $in and $out in exec args

* Allow passing args to rename

* Default autohintOTF to false

* Derive output directory defaults from outputDir, fixes #846

---------

Co-authored-by: خالد حسني (Khaled Hosny) <[email protected]>
Co-authored-by: Marc Foley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant