This is a migrated thread and some comments may be shown as answers.

[Solved] TypeKit Support?

2 Answers 30 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Day
Top achievements
Rank 1
Day asked on 10 Dec 2010, 05:30 PM
Because the editor sits in an iFrame it's not picking up my TypeKit fonts.

 I have tried to add the script that loads the font into the head of the contained iFrame, but I think that the editor (perhaps wisely) is rejecting this as an attempt at script injection into the content. However, I would like my users to be able to see the content using the font that they will see in the final product.

I have tried to find other ways to add a script to the edtior iFrame, just as you can add a stylesheet, but I either can't find it or don't understand how to use api methods like ScriptFileNames (i.e. I'm not finding an example)

Other ideas on how I can get the editor to render my TypeKit fonts?

Thanks, DK

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 11 Dec 2010, 03:25 PM
Hello Day,

Thank you for the excellent question.

We did a research on this topic and it appears that this is possible, but it won't work in IE. I've attached a demo that shows how this can be done for Firefox/WebKit.

All the best,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Day
Top achievements
Rank 1
answered on 14 Dec 2010, 10:57 PM
Thanks for the information.
We actually returned to using the AJAX version (we just needed to figure out some details about making it work within our MVC project), and so I suppose I have the same question about running TypeKit in the iFrame for the AJAX version.
Thanks, DK
Tags
Editor
Asked by
Day
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Day
Top achievements
Rank 1
Share this question
or