Open madig opened 2 years ago
can you provide an example? How does fontTools.featureVars handle the situation? We should probably match that, provided is the right thing to do
How should it be handled?
did the font developer write those on purpose, if so what was the intended behavior?
The example was (note the Hbar):
<rules processing="last">
<rule name="BRACKET.149.227">
<conditionset>
<condition name="Weight" minimum="149" maximum="227"/>
</conditionset>
<sub name="Hbar" with="Hbar.BRACKET.149"/>
<sub name="cent" with="cent.BRACKET.149"/>
<sub name="dollar" with="dollar.BRACKET.149"/>
</rule>
<rule name="BRACKET.186.227">
<conditionset>
<condition name="Weight" minimum="186" maximum="227"/>
</conditionset>
<sub name="Hbar" with="Hbar.BRACKET.186"/>
</rule>
</rules>
I didn't receive word yet whether this was intended, but probably not. In the VF, the last rule wins and in the statics, the first on does IIUC.
What does it mean when rule ranges overlap for the same glyph? How should it be handled? an internal bug report prompts me to think there is a behavioral difference between VFs and statics.