To be able to display the Titillium font like any other text, you need to embed the font on the web page. There are many online services that can help you with this. Before deploying, make sure that the font license allows you to embed a font, since multiple fonts are not allowed.
Here is an example of embedding fonts using CSS3:
@font-face{ font-family: 'Titillium'; src: url('Titillium.eot'); src: local('Titillium'), url('Titillium.ttf') format('truetype'), url('Titillium.woff') format('woff'), url('Titillium.svg') format('svg'); font-weight: normal; font-style: normal; }
As you can see above, there are different formats for the same fonts that I put. They must be compatible with browsers, for example: eot is supported by Internet Explorer. WOFF is a format that will soon be widely accepted by all browsers. Many online converters are available for converting a font. You can do it yourself by choosing the best one for yourself.
Font embedding is supported in the following browsers:
- Mozilla Firefox: Version: 3.5+
- Google Chrome: Version 4.249.4 +
- Apple Safari: Version 3.1 +
- Opera: version 10.5 +
- Microsoft Internet Explorer: Version 4 +
Here is the glow effect that I always use in my projects :)
HTML
<span id="glow">Hello World</span>
CSS
#glow{ font-weight:bold; text-shadow:0 1px 0 rgba(255, 255, 255, 0.6), 0 0 10px rgba(73, 167, 219, 0.5), 0 0 30px rgba(92, 214, 255, 0.7), 0 0 75px rgba(92, 214, 255, 0.8); }