Google Font Api

Google yine yapacağını yaptı ve sitelerimizde değişik fontlar kullanabilmemizi sağlayan font api servisini yayına soktu.

sIFR ve Cufon gibi yöntemlere göre daha pratik bir kullanım sunuyor. Ayrıca yazılan texti seçebilme ve kopyalayabilme gibi işlemleri yapmamıza izin veriyor. Servisin diğer güzel tarafıda IE6 dahil tüm tarayıcılarda sorunsuz bir şekilde çalışması.

Kullanmak için Google font api sayfasından ilgili font için verilen kod parçacıklarını sayfaya eklemek yeterli:

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lobster">
h1 { font-family: 'Lobster', arial, serif; font-size: 50px; }

Örnek kullanım:

<html>
  <head>
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lobster">
    <style>
      h1 {
        font-family: 'Lobster', serif;
        font-size: 48px;
      }
    </style>
  </head>
  <body>
    <h1>Selam Dünya!</h1>
  </body>
</html>

Google Font Api servisini kullanmak için tıklayın.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">