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

[glyphs2ufo] add --no-propagate-anchors CLI option #979

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions Lib/glyphsLib/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,26 @@ def main(args=None):
"roundtripping between Glyphs and UFOs."
),
)
group.add_argument(
anchor_group = group.add_mutually_exclusive_group()
anchor_group.add_argument(
"--propagate-anchors",
default=None,
action="store_true",
help=(
"Copy anchors from underlying components to actual "
"glyph. Glyphs would do this implicitly, only use if you need "
"full control over all anchors."
"Copy anchors from underlying components to actual glyph "
"(Glyphs would do this implicitly upon export). By default, if this option "
"is not explicitly used, glyphs2ufo checks the 'Propagate Anchors' font "
"custom parameter and if unset or set to 1 (true) then the anchors get "
"propagated. Pass this option to enable this overriding the parameter."
),
)
anchor_group.add_argument(
"--no-propagate-anchors",
dest="propagate_anchors",
default=None,
action="store_false",
help="Disable anchor propagation regardless of any custom parameter.",
)
gdef_gen_group = group.add_mutually_exclusive_group()
gdef_gen_group.add_argument(
"--generate-GDEF",
Expand Down
Loading