sile-typesetter / sile

The SILE Typesetter — Simon’s Improved Layout Engine
https://sile-typesetter.org
MIT License
1.61k stars 97 forks source link

Add CFF2 variable fonts support #1673

Open alerque opened 1 year ago

alerque commented 1 year ago

Progress on #1182 via #1672 is coming along nicely, but without CFF2 font support. This is a tracking issue noting it is something that can be added later.

ctrlcctrlv commented 1 year ago

As I noted in #1672, this is probably best handled in HarfBuzz, so when or if it lands there all we should have to do is check its version.

khaledhosny commented 1 year ago

HarfBuzz main branch now have CFF2 instancing. I’m going to test this and may be we can get this working in #1672 before it is merged.

ctrlcctrlv commented 1 year ago

cool :D

alerque commented 1 year ago

All the distros that already bumped to HB 6 are going to bump pretty fast to a minor release, so we can probably up the minimum version for this if we need to. On the other hand it might be better to just throw an error if they are not supported and keep it at 6-even for simplicity.

khaledhosny commented 1 year ago

This is not usable for us yet, unfortunately. Since CFF2 is a different table, insanciating alone is not enough, we also need to convert it to CFF for embedding in PDF.

khaledhosny commented 1 year ago

https://github.com/harfbuzz/harfbuzz/issues/4014