> OK. Minor nit: Please avoid overlong git commit messages (i.e., not
> longer than 78 characters). And there should be an empty line after
> the first line to help tools like `gitk` to properly display git
> commits. [Overlong lines should be avoided in the C code, too, both
> for comments and code.]
> Excellent! I think it would also be beneficial if you could mention
> your findings in either a git comment or in the code itself, together
> with some real-world examples of such quirks (i.e., font name, font
> version, glyph name, reason why it fails, etc., etc.)
Will do, thanks.
I need some help figuring out how to handle the type 3 lookups.
I need to do 2 things:
- Figure out which features contain type 3 lookups
- Determine the number of variations the feature contains
For the second one, this function seems relevant:
But this returns a list of lookups if you already know the variation index, when I want to know the range of possible variation indices.
hb_ot_layout_lookup_get_glyph_alternates
also looks useful and could partially solve the problem. With this function, I can handle the type 3 lookup cases in isolation, only finding the glyphs directly resulting from the feature and no further transformations.
Also, can I have some advice on testing the code? How should I make these changes bulletproof?