Only one fontactive event for 2 fonts.
tolmasky opened this issue · comments
I have the following config:
{
google: { families: ["Fira Sans:n4,n7", "Ubuntu Mono:n4"] } },
fontactive: console.log
}
I only ever see "Fira Sans", "n4"
and "Ubuntu Mono", "n4"
. All the classes get added to the HTML element however, so just seems to be some sort of logic error with dispatching events. Currently I am manually polling the HTML element looking for these classes, as suggested in the related bug #351 filed 2 years ago, but I would very much prefer not to have the added complexity/slowdown when the API for this theoeretically exists.