CrocoDillon / font-store

Base64 encodes web fonts to cache in LocalStorage for high performance.
39 stars 7 forks source link

Add support for other web font services #3

Open CrocoDillon opened 9 years ago

CrocoDillon commented 9 years ago

Currently font-store is developed around and only tested with Google Fonts. In theory it should work with other services too but this should be tested.

If needed make service specific modules.

Some services (not sure if all licenses are permissive enough):

47ronin commented 8 years ago

Doesn't currently work with WebType fonts (invalid url error, with license token used) —necessary for my project because http requests for external web fonts annoyingly pause the load of our digital signage apps. However, when I do a simple cURL I do get a WOFF file from the server.

CrocoDillon commented 8 years ago

Hey @47ronin, I'll check tomorrow if I can test WebType and see if I can fix this with a free/trial account. Otherwise I might need help.

CrocoDillon commented 8 years ago

@47ronin, I made a quick fix that should solve the issues with WebType. However if the issues persist, please let me know :)

47ronin commented 8 years ago

@CrocoDillon Hey there, happy new year! Used npm to install the update. WebType still doesn't work for our licensed fonts, which use a URL structure similar to (woff version): //cloud.webtype.com/webtype/ff2/3/probably_some_id?ec_token=really_long_hash …where probably_some_id is a string about 36 characters and parameter ec_token is approximately 258 characters.

Compared to how WebType links their own CSS on their website, user-licensed fonts seem to require ec_token as an appended value in the URL. Hope that helps!