You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also wonder, why is the glyph_stream_provider callback seemingly only called with the TTF font? I probably got lost in all the undocumented magic constants. In any case thank you for figuring all the magic out and implementing the great HarfBuzz support!
More of a question at first: Is there a reason for collectgarbage (Lua full garbage collection) to be run from the
harf
variant of theglyph_stream_provider
callback?I would think there's no need to perform explicit GC, and especially when run for multiple fonts back-to-back it can actually be quite slow.
Depending on whether the GC is needed for
mode=harf
code path, I propose to either:collectgarbage
call.collectgarbage
only in case the font was loaded withmode=harf
.I can provide pull request if needed, but feel free not to wait for me with such a trivial change :)
The text was updated successfully, but these errors were encountered: