cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Embedding Fonts?

murali_balreddy
Active Participant
0 Likes
610

How can I embed additional fonts using CSS @font-face rule?

Thanks.

View Entire Topic
murali_balreddy
Active Participant
0 Likes

Found solution to my own problem.

Cause: IE and Design Studio failed loading fonts due to the cross-domain access policy.

Solution: In the web server that serves the font, have a Apache .htaccess file (in case of Apache host) in the same folder as the fonts being served.

Contents of the file needs to be

<FilesMatch "\.(ttf|otf|eot|woff)$">

  <IfModule mod_headers.c>

    Header set Access-Control-Allow-Origin "*"

  </IfModule>

</FilesMatch>

When having the fonts along with the CSS file, the Design Studio localhost was not looking at the same location as the CSS for fonts. When fonts were hosted elsewhere and referenced in the CSS file, it worked perfectly.

Source: http://stackoverflow.com/questions/5065362/ie9-blocks-download-of-cross-origin-web-font

Thanks.

Former Member
0 Likes

wow, good find.

rama_shankar3
Active Contributor
0 Likes

Good - thanks for sharing!

Rama