-
Notifications
You must be signed in to change notification settings - Fork 448
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
[varLib.featureVar] Need to be able to generate 'rclt' and/or 'rlig' #1625
Comments
Just adding that I would appreciate this change. I am trying to implement "code ligatures" in a font, in a way that gives the end user better control over when code ligatures are applied. (Current code ligature fonts like Hasklig and Fira Code use So, one thought of how to achieve this was to:
(Sidenote: yes, this is a bit hacky, and my preferred option is to use To make this My use-case is probably somewhat silly. Obviously, it's much more likely that this issue will bite people who wish to make use of conditional rules for connected scripts, (I think) especially in scripts like Arabic. |
Instead of having a variable access that is not variable, why not use |
@khaledhosny that's mostly my preference, but there are pros and cons to either approach. I happened to make a slide show about this earlier in the week: https://docs.google.com/presentation/d/11POJKckoGBhDk1kyQu3DC1tNUNJWwqF2FigIV6Tfdwo/edit?usp=sharing |
Fixed by d96c92f |
'rvrn' has some serious limitations, as seen in #1371 and discussed on the OpenType mailing list.
@behdad wrote in that discussion:
So, while the spec would need to be edited to reflect this suggestion, the documented behavior of 'rclt' and 'rlig' are suitable for our needs, and
fontTools.varLib.featureVars
should be extended to make this possible.Ideally, this should also trickle up to designspaceLib, at least as an option.
The text was updated successfully, but these errors were encountered: