• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Serving Fonts from Rackspace Cloud Files CDN

By Abhishek Ghosh November 5, 2013 7:04 am Updated on November 5, 2013

Serving Fonts from Rackspace Cloud Files CDN

Advertisement

Serving Fonts from Rackspace Cloud Files CDN will require extra X Header else you can not serve Font-Face and the TTF, EOT, OTF and WOFF Files. Here is how. We will give reference to only two older articles, there nearly a thousand articles only on Cloud Computing, you can either search this website (easy way) using the site Search function or can check the official documentation (for the developers). You can try to offload these files to Rackspace Cloud Files – definitely it will not work.

 

Serving Fonts from Rackspace Cloud Files CDN : Basics

 

You can try serving Fonts from Rackspace Cloud Files CDN including Font-Face and the TTF, EOT, OTF and WOFF Files, it will not work. Two important articles (and the relevant articles linked within those articles) related to this topic are :

 

  1. How To Use Any Web Font From Own Hosted Library
  2. Serving Full HTML Website From Rackspace Cloud Files CDN

 

As one can assume, the basics of serving Fonts from Rackspace Cloud Files CDN remains in the article named Serving Full HTML Website From Rackspace Cloud Files.

Advertisement

---

 

Serving Fonts from Rackspace Cloud Files CDN : Let us Go

 

First, check the normal Header response from your server for serving each files. You can use any online Free tool to check the Header Response or use cURL on *nix (UNIX or GNU Linux) system with this command :

 

Vim
1
curl -i http://example.com/wp/wp-content/themes/my-theme/fonts/font.ttf

 

You can check the cURL manual :

 

Vim
1
http://unixhelp.ed.ac.uk/CGI/man-cgi?curl

 

Serving-Fonts-from-Rackspace-Cloud-Files-CDN

Windows users can follow this guide to install cURL or use any online tool. Now, if you check a image file’s header which is on Cloud Files, you will see that some of the headers are missing.

It is quite obvious, that if you add them manually from your Cloud Files account, you will able to get them served. For Apache server, we use this chunk of code to enable it :

 

Vim
1
2
3
4
5
# Apache config
<FilesMatch ".(eot|ttf|otf|woff)">;
Header set Access-Control-Allow-Origin "*"
#suppose you are ending here in the next line
</FilesMatch>

Basically this never required for servers. But for CDN, we need to add as the content awareness mechanism, which adds a header automatically does not work. Do not ask me how this thing is automatically done – this is part of managing OpenStack Swift’s content policy. What we have seen that, the content awareness works for most of the files (for OTF, for example it works fine), sometimes extra headers are required to be added. Try this to cURL :

 

Vim
1
curl -i http://36b4b398438807f45c08-d307e5ed4df0e6ab544a0970868e062f.r15.cf2.rackcdn.com/SyrCOMUrhoyBold.otf

But heading to the url itself via browser will prompt you to download the font.

Also, see this document :

Vim
1
http://developer.rackspace.com/blog/cloud-files-update-new-features.html

Tagged With NULL , how to add font pack to rackspace
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Serving Fonts from Rackspace Cloud Files CDN

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • Steps To Install Nginx Plus on Ubuntu Server (HP Cloud)

    Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features.

  • OpenStack Swift & HPCloud CDN PHP Bindings : Basics

    Here is the basics of OpenStack Swift & HPCloud CDN PHP Bindings for the WordPress Plugin developers and those who works with PHP based CMS.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy