Tuesday, August 21, 2012

Computer Science-Embed Font

If you want to embed a font into a document or a website, all you have to do is adjust the stylesheet associated with the page. Font-face defines the font you want to use, and you can call that font wherever you want. For example whenever you write paragraphs as is shown here, or you can list it higher up in the hierarchy such as in the body of the text, or in the header.

@font-face {
font-family: "Name your font";
font-weight: normal;
font-style: normal;
src: url(../location/of/font.ttf);
}


p {
font-family: "call your font";
font-size: 1.00em;
text-align: justify;
}


Then in your document link to your css stylesheet. 
<link href="../location/of/Stylesheet.css" rel="stylesheet" type="text/css" />

No comments:

Post a Comment