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

Don't fetch UUID TTFs starting with letters

SilasMouraDev opened this issue · comments

I have some TTF fonts whose file names has been renamed for uuids:

040a2e1d-2481-4310-9fb4-bac1a7a35621.ttf
076a963b-3b28-46ef-bf38-157c0fbbec4d.ttf
3fbbea44-0ba7-41cf-95a4-580aafcca970.ttf
ad69a2e5-ce5a-4bfa-867f-6b053d74c0c7.ttf
ee3f078c-7993-4559-bac8-ee76cb8c0e55.ttf
fb4a0577-4b8c-4913-9c10-4de0f4ebe219.ttf

I loaded them into the environment using the FontFace object and then executed the webfontloader.
I observed webfontloader fires the active event without trying to fecth the fonts with the file names starting with letters.
image

When i manually replaced the first letter for a number they loaded smoothly!
image

For now i'm just prefixing my fonts with '0-' but you guys maybe want to give a look. =)

I wrote some sample code so you can see it happening in Chrome by yourself.
here: tt.zip

commented

I also noticed the same behaviour with similar font names but haven't been able to replicate the issue recently, will try your zip.