Open peteward opened 8 months ago
This wasn't the right fix.
There are various scoping issues throughout this file that lead to errors for certain fonts.
In the end I moved the initialisation of lots of variables to the top level so that the order in which they hit various case statements didn't matter.
It would probably be better to block scope each case statement instead though and initialize as required within them.
Hi! π
Firstly, thanks for your work on this project! even if it does seem to be abandoned nowadays π
Today I used patch-package to patch
fontkit@2.0.2
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.