
Warren Bedell - 2011-03-03 16:48:25 -
In reply to message 4 from Manuel Lemos
There are at least two approaces to specifying an external font in HTML.
The first is to use a service like Google's font API to download the font on-demand from their CDN. Something like this (watch for word-wrap):
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif|Droid+Sans">
The second way is to store the font on the server along with the HTML page and add some CSS to load the font:
<style type="text/css">
@font-face {
font-family: 'VanillaRegular';
src: url('fonts/Vanilla-webfont.eot');
src: url('fonts/Vanilla-webfont.eot?iefix') format('eot'),
url('fonts/Vanilla-webfont.woff') format('woff'),
url('fonts/Vanilla-webfont.ttf') format('truetype'),
url('fonts/Vanilla-webfont.svg#webfontJgXy5dCM') format('svg');
font-weight: normal;
font-style: normal;
}
Either way, the HTML involves CSS stylesheet settings. Is that something that can be controlled?
Thanks in advance!