cssembedded-fontstypekit

How can I load dynamically typekit fonts?


Is there a way to load typekit fonts dynamically, much like the Google Font API?

That is, how can I declare dynamically on each page the font name in a css link and load just the font(s) that are required for that page, instead of adding fonts into a kit and the loading the whole kit.


Solution

  • I have found a solution, posting it here in case it is useful for someone else:

    I will use the Typekit API to dynamically create a new 'kit' (i.e. javascript file) for every different combination that my app requires, instead of including all of them in one big 'kit'.

    See: https://typekit.com/docs/api/kits

    Thanks anyway for your answers!