harfbuzz / rustybuzz

A complete harfbuzz's shaping algorithm port to Rust
MIT License
551 stars 37 forks source link

Add test covering incorrect application of avar table #137

Closed maxmelander closed 2 weeks ago

maxmelander commented 2 weeks ago

Adds test to cover the issue where the avar table was beeing applied to the same coordinate multiple times when calling set_variations ( #136 ).

This test will pass when RazrFalcon/ttf-parser@1cac7c71c179660b927b0add4b061b9fca3d6d9d is taken into use.

RazrFalcon commented 2 weeks ago

I have updated ttf-parser, so the test should not fail anymore. But since we auto-generate tests, there are a couple more steps needed.

  1. Put your test data into tests/custom/bugs.tests.
  2. Move the font to tests/fonts/rb_custom.
  3. Move variations_006 to tests/shaping/custom.rs as bugs_002.

That should be enough.

RazrFalcon commented 2 weeks ago

Thanks!