-
Notifications
You must be signed in to change notification settings - Fork 17
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
Test groups for equality before doing fontMath kerning math #245
base: master
Are you sure you want to change the base?
Conversation
…qual, throw a value error.
Codecov Report
@@ Coverage Diff @@
## master #245 +/- ##
==========================================
+ Coverage 88.46% 88.57% +0.10%
==========================================
Files 13 13
Lines 2359 2390 +31
Branches 305 307 +2
==========================================
+ Hits 2087 2117 +30
Misses 195 195
- Partials 77 78 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I'm on a deadline now, so this will take me at least a few days to review. The non-equal groups was a feature, not a bug, but I'll have to try to remember why I did it the way that I did. I wrote this particular bit of code around 2003 and all that I remember off the top of my head is that it was very difficult. 😟 |
I think that this may be better with a |
Thanks Ben. I see Tal's comment about this being intentional. If, say, group1 has a particular glyph A in a group, but other side doesn't have A in any group, one might want to assume that it was an omission in group2 and hence add it anyway? I find that dubious. The alternative is to split the groups when mismatches occur. We have code to do that in |
This fixes #22, but will be breaking to a lot of code (though it's more correct). Perhaps better to add a
strict
option?