<p>I would try to add the fonts with the Craft plugins</p>

<p><a href="https://github.com/lindseydiloreto/craft-cpjs" rel="nofollow">Control Panel JS</a><br>
<a href="https://github.com/lindseydiloreto/craft-cpcss" rel="nofollow">Control Panel CSS</a></p>

CC BY-SA 3.0
2015-10-26T18:34:48.720Z
While that would work, it wouldn't be future-proof, since I'd need to explicitly tell the Plugin what pages have Redactor. It'd also be somewhat overkill to add a plugin for something Redactor already (supposedly) has support for.
Taylor Daughtry
CC BY-SA 3.0
2015-10-26T18:42:47.370Z
Using Redactor sparse? Or what's the reason to not trigger that JS on every CP request (to preload/cache the fonts)?
carlcs
CC BY-SA 3.0
2015-10-26T18:22:36.797Z
2015-10-26T18:22:36.797Z
carlcs
<p>I need to use a Typekit font in Redactor, but I'm not quite sure if I've done something wrong, or if Redactor's made a breaking change.</p>

<p>I'm enabling the <code>iframe = true</code> parameter in a <code>custom.json</code> redactor config, and then loading Typekit with the <code>initCallback</code> parameter. However, Redactor isn't placing the iframe (as of Craft Pro 2.4.2691) that Typekit uses for selection purposes.</p>

<p>Any ideas? has Redactor recently made a breaking change?</p>

<p><strong>TL;DR:</strong> What's the best-practice for using Typekit fonts in Redactor fields as of Craft Pro 2.4.2691?</p>

<redactor>
Using Typekit fonts in Redactor
# Using Typekit fonts in Redactor

(Asked by: username_0 on 2015-10-26)

I need to use a Typekit font in Redactor, but I'm not quite sure if I've done something wrong, or if Redactor's made a breaking change.

I'm enabling the `iframe = true` parameter in a `custom.json` redactor config, and then loading Typekit with the `initCallback` parameter. However, Redactor isn't placing the iframe (as of Craft Pro 2.4.2691) that Typekit uses for selection purposes.

Any ideas? has Redactor recently made a breaking change?

**TL;DR:** What's the best-practice for using Typekit fonts in Redactor fields as of Craft Pro 2.4.2691?

**Tags:** redactor


---

## 1 answers

### Answer by username_1 on 2015-10-26. Score: 1

I would try to add the fonts with the Craft plugins

[Control Panel JS](https://github.com/lindseydiloreto/craft-cpjs)  
[Control Panel CSS](https://github.com/lindseydiloreto/craft-cpcss)

> **Comments:**
> **username_0**: While that would work, it wouldn't be future-proof, since I'd need to explicitly tell the Plugin what pages have Redactor. It'd also be somewhat overkill to add a plugin for something Redactor already (supposedly) has support for.  
> **username_1**: Using Redactor sparse? Or what's the reason to not trigger that JS on every CP request (to preload/cache the fonts)?  

---

