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

Custom font families with apostrophes in the name are reported inactive incorrectly

wyozi opened this issue · comments

For instance loading custom font family Suisse Int'l would trigger the inactive callback, because all apostrophes are stripped from the font family name before using the native font watcher to check if it has been loaded triggering the timeout for the font load.

Fixing this would presumably require changes to https://github.com/typekit/webfontloader/blob/master/src/core/font.js#L59 to handle apostrophes inside the font family name correctly.