Webページでエキゾチックなフォントを使用する別の方法

画像 クライアントが自分のWebサイトで「このきれいなAAAフォント」を望んでいることがよくあります。 以前は、ほとんどの場合、カスタムフォントまたは同じ@ font-faceを操作するためのさまざまなライブラリが登場するまで利用できませんでした。

sIFRcufonなどのソリューションもありますが、提案された方法ほどエレガントではない場合があります。 私たちが良くなることはありませんホリバー
また、@ font-faceを使用すると、フォントなどのライセンスに問題が発生する可能性があります。

むかしむかし、ほとんどのサイトビルダーは写真を使用していました(そして今でも気づかれています)。 当時は時々、サイトをすばやく読み込むために写真をあきらめなければなりませんでした(そのため、インターネットの速度は現在と同じではなかったため)。 しかし、このフォントや「きれいな」フォントを使用しないほうが良い理由を顧客に説明することは非常に困難です。 はい、これは実際にはないはずです!

どのオプションが最適ですか?

一般的に、誰もが独自の方法でカスタムフォントを導入することで生じた問題を解決(解決)します。 誰かがそれらを気に入っており、おそらく誰かがレーキを踏んでいます。

したがって、素晴らしいサービスであるGoogle Font APIを検討する(そして誰かに思い出させる)価値があります。 すぐに警告します:これは万能薬ではなく、すべての問題の解決策ではありませんが、現在使用/使用しているすべてのものに対する優れた代替手段です。

Google Font APIを使用すると、他のほとんどのツールと同じように、WebページにWebフォントを埋め込むことができます。 利点は何ですか?

Google Font APIには次が含まれます。

短所:

少数については、独自のフォントを追加することができます。

また、必要なフォントとその特性を選択できるフォントビューアーもあります。 また、Chromeでは、これに加えて、特別な拡張機能が提供されています。

すでに述べたように、APIの使用は非常に簡単です。 Webページの<head> ... </ head>セクションに、必要なCSSをロードする行を追加するだけです。



CSS :

h1 { font-family: 'Lobster', arial, serif; }


API? Google Font API ( <link>), Font API , . CSS.

IE, <link> <head>. IE, <script>, , - .

Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

, Google :

<html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


CSS :

h1 { font-family: 'Lobster', arial, serif; }


API? Google Font API ( <link>), Font API , . CSS.

IE, <link> <head>. IE, <script>, , - .

Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

, Google :

<html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  1. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  2. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  3. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  4. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  5. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  6. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  7. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  8. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  9. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  10. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  11. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  12. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  13. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  14. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  15. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  16. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  17. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  18. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  19. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  20. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  21. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  22. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  23. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  24. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  25. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  26. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  27. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  28. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  29. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  30. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  31. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  32. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


  33. CSS :

    h1 { font-family: 'Lobster', arial, serif; }


    API? Google Font API ( <link>), Font API , . CSS.

    IE, <link> <head>. IE, <script>, , - .

    Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

    , Google :

    <html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


CSS :

h1 { font-family: 'Lobster', arial, serif; }


API? Google Font API ( <link>), Font API , . CSS.

IE, <link> <head>. IE, <script>, , - .

Chrome, Opera, Safari Internet Explorer , , FireFox . Google , , FireFox.

, Google :

<html> <head> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" > </script> <script type= "text/javascript" > WebFont.load({ google: { families: [ 'Tangerine' , 'Cantarell' ] } }); </script> <style type= "text/css" > .wf-inactive p { font-family: serif } .wf-active p { font-family: 'Tangerine' , serif } .wf-inactive h1 { font-family: serif; font-size: 16px } .wf-active h1 { font-family: 'Cantarell' , serif; font-size: 16px } </style> </head> <body> <h1>This is using Cantarell</h1> <p>This is using Tangerine!</p> </body> </html> * This source code was highlighted with Source Code Highlighter .


興味のある方は、 Google Font APIにアクセスして利用可能なフォントのリストを確認し、ドキュメントを読むことをお勧めします。

だから、最も最適なもの-あなたは常に選択する必要があります、私はこの主題について私の考えをもたらしました。 たぶん誰かがこれが最良の方法であると判断し、誰かがそれをしない方法を見るでしょう。 はい、実装例は異質です。
いずれにせよ、あなたの選択があなたがしている仕事を支持するようにしてください。

Source: https://habr.com/ru/post/J111852/


All Articles