How can i allow a user to view a font on my webpage which is not available on his computer?
I want to learn how to use a plugin for that purpose ?

Recommended Answers

All 6 Replies

You can use google web fonts for that. You download the font via an href to the google font location.
Here is Google's getting started guide

commented: what he said :) +13

even using google webfonts, keep it simple
use the google href, not from your own site
the added download time for a font kills user retention
fonts referenced from google may already be in the cache

you can use this code for that

<html>
  <head>
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine">
    <style>
      body {
        font-family: 'Tangerine', serif;
        font-size: 48px;
      }
    </style>
  </head>
  <body>
    <div>Making the Web Beautiful!</div>
  </body>
</html>

This is very much helpful to you.

<style type="text/css">
@font-face {
    font-family: "My Custom Font";
    src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}
p.customfont { 
    font-family: "My Custom Font", Verdana, Tahoma;
}
</style>
<p class="customfont">Hello world!</p>

try this

you just add the given css code to your styles.css

body{font-family: 'sanserif verdena';}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.