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

Allow chws_tool to take a file path output #191

Merged
merged 2 commits into from
Mar 17, 2024
Merged

Allow chws_tool to take a file path output #191

merged 2 commits into from
Mar 17, 2024

Conversation

simoncozens
Copy link
Contributor

The underlying add_chws function called by the command line utility can take as output "the path or the directory of the output font". However, the CLI arguments currently only allow for output directories.

Allowing paths as well (using the same logic as east_asian_width to determine if the output argument is a file or directory) would mean that chws_tool can be used in situations where a known output file is desired (in particular a build system like gftools.builder2!) as well as in-place fixing of font files.

$ chwstool -o NotoSerifCJKhk-VF-chws.ttf NotoSerifCJKhk-VF.ttf

@simoncozens simoncozens requested a review from kojiishi March 13, 2024 10:29
Copy link
Collaborator

@kojiishi kojiishi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@kojiishi kojiishi merged commit 8b3ef95 into main Mar 17, 2024
9 checks passed
@kojiishi kojiishi deleted the allow-outfile branch March 18, 2024 13:16
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.

2 participants