foliojs/fontkit

Issue with namedVariations in Variable Font (SourceSans3VF.otf)

msueyoshi-m opened this issue · 1 comments

I've encountered an issue where retrieving namedVariations fails for the SourceSans3VF-(Upright/Italic).otf variable font.

It seems that the fvar table's subFamilyNameID is set to 2, while the code expects this ID to be greater than 256. From what I understand, the name table’s fontFeatures are being used to obtain the subfamily name for the fvar instance, but this process only targets IDs greater than 256, leading to the failure.

To reproduce:

  1. Load SourceSans3VF.otf with fontkit.
  2. Attempt to access namedVariations.

You can download the font from this link.
Thank you for looking into this!

This issue has been addressed in #317. The solution provided seems to resolve the problem described here. I’m closing this issue now, but please feel free to reopen it if you encounter any further related problems.

Thank you to everyone who contributed to fixing this!