Skip to content

Glyphs Filter to parse rlig code and remove lines involving subsetted axes in variable exports

License

Notifications You must be signed in to change notification settings

HugoJourdan/update-rlig-for-subset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Update rlig For Subset

Update rlig For Subset PreFilter to remove conditions involving axes not present in a specified list.

Usage: Add `UpdaterligForSubset” as a PreFilter in Glyphs in a Variable Instance, with a list of axis tags you want to keep.

Example: UpdaterligForSubset;wght,slnt will remove all conditions where an axis different from wght or slnt is involved.

So if you use UpdaterligForSubset;wght and your rlig code looks like:

#ifdef VARIABLE
condition 120 < wght;
sub dollar by dollar.rlig;

condition 50 < wdth;
sub cent by cent.rlig;
#endif

You will get:

#ifdef VARIABLE
condition 120 < wght;
sub dollar by dollar.rlig;
#endif

Auto-Mode

You can also type UpdatreligForSubset; without an argument or UpdaterligForSubset;auto.

If a custom parameter Disable Masters is set, it will analyze the remaining masters and retain only the axes kept at export.

For example, in a setup with Condensed + Normal width, if Disable Masters CP removes all your "Condensed" masters, the width axis will be removed at export, and the auto mode will set it as an argument in the filter.

About

Glyphs Filter to parse rlig code and remove lines involving subsetted axes in variable exports

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages