1. Home
  2. Knowledge Base
  3. Ghostlab: Troubleshooting
  4. My typekit fonts don’t work!

My typekit fonts don’t work! What to do?

Typekit fonts are registered for certain domains – e.g. myawesomesite.net, or localhost, or several.
When you view a page via Ghostlab, you receive it from the Ghostlab server – which runs at your local IP address, e.g. 192.168.1.4. When the page then tries to load the font, the request is denied because it did not originate from the right domain – it originated from your Ghostlab server.

There are two ways to fix this. The easier one is to simply change the way Ghostlab rewrites JavaScript code. Make sure the level of JavaScript rewriting is set at least to 2.

The other way you can fix this by adding the IP address on which Ghostlab is running to the domains of your typekit font. To do this:

  1. Log in to your typekit account
  2. Go to the settings for the font kit in question
  3. Add an entry for the IP address where you run Ghostlab in the domain field (e.g. 192.168.1.4)
  4. Publish these new settings
Note: the change might take some time to propagate.

Was this article helpful?

Related Articles