typekit / webfontloader

Web Font Loader gives you added control when using linked fonts via @font-face.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.