If you want to use the Titillium font on your webpage just like any other text, you'll need to embed the font. There are numerous online services available that can assist with this process.
Before embedding the font, be sure to check the font's license to ensure that embedding is permitted, as some fonts do not allow it.
Below is an example of how to embed the font 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;
}
In the above code snippet, you'll notice various formats of the same font being used. This is done to ensure browser compatibility - for example, EOT is supported by Internet Explorer and WOFF is a format that is expected to be widely accepted across all browsers soon.
There are several online converters available that can help you convert fonts. Simply search online to find the best one for your needs.
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+
Below is the glow effect I frequently 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);
}