wch/extrafont — pull request #17 by jrnold (2012-10-06 03:53:01+00:00)
Title: call loadfonts in .onAttach()

It seems weird that loadfonts needs to be called everytime extrafont is used. It seems that loadfonts should be a natural side-effect of loading the package, and should only have to be called if new fonts are imported during a session.

I defined .onAttach to call loadfonts for all the relevant devices; this required adding some packages to depends. Something else needs to be done in order to suppress, or provide a way to suppress messages.

This may be a bad idea for reasons that I haven't considered, but if it can be done, it seems like the kind of outcome I'd expect as a user.