Tuesday, September 28

 

Embed webfonts to your webpage

Digg! delicious Google Bookmark Reddit Slashdot Yahoo my Web stumbleupon Technorati

By using the Google Font API to add web fonts to your web pages. You don't need to do any programming; all you have to do is add a special stylesheet link to your HTML document, then refer to the font in a CSS style.

Javascript link:

Code Snippet
  1. <link href='http://fonts.googleapis.com/css?family=IM+Fell+Great+Primer+SC&subset=latin' rel='stylesheet' type='text/css'>

CSS:

Code Snippet
  1. <style type="text/css">
  2. h1 { font-family: 'IM Fell Great Primer SC', arial, serif; }
  3. style>


HTML:

Code Snippet
  1. <div>
  2. <h1>123code.blogspot.comh1>
  3. div>

Output:
More information: here

Labels:

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home