<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[api - All your code are belong to us]]></title><description><![CDATA[Thoughts, stories and ideas on code and technology in general.<br>Blog title inspired by <a href="https://en.wikipedia.org/wiki/All_your_base_are_belong_to_us" target="_blank">this meme</a>]]></description><link>https://allurcode.com/</link><image><url>https://allurcode.com/favicon.png</url><title>api - All your code are belong to us</title><link>https://allurcode.com/</link></image><generator>Ghost 4.48</generator><lastBuildDate>Wed, 10 Jun 2026 09:35:27 GMT</lastBuildDate><atom:link href="https://allurcode.com/tag/api/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Google font api and font directory]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>Google just made our life much easier by announcing <a href="http://code.google.com/apis/webfonts/">Google font api</a> and <a href="http://code.google.com/webfonts">Google font directory</a>.<br>
Using custom fonts on your website is as easy as adding two lines of code. Lets consider this simple example.</p>
<pre><code class="language-html">&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Custom</code></pre>]]></description><link>https://allurcode.com/google-font-api-and-font-directory/</link><guid isPermaLink="false">5b7b0aa2b52b43084c9ea120</guid><category><![CDATA[api]]></category><category><![CDATA[CSS]]></category><category><![CDATA[font]]></category><category><![CDATA[Google]]></category><category><![CDATA[HTML]]></category><category><![CDATA[Tangerine]]></category><dc:creator><![CDATA[Wojtek]]></dc:creator><pubDate>Sun, 23 May 2010 12:08:36 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>Google just made our life much easier by announcing <a href="http://code.google.com/apis/webfonts/">Google font api</a> and <a href="http://code.google.com/webfonts">Google font directory</a>.<br>
Using custom fonts on your website is as easy as adding two lines of code. Lets consider this simple example.</p>
<pre><code class="language-html">&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Custom fonts&lt;/title&gt;
    &lt;meta charset=&quot;utf-8&quot; /&gt;
    &lt;style&gt;
      p {
        font-size: 48px;
      }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;header&gt;
        &lt;p&gt;Hello world!&lt;/p&gt;
    &lt;/header&gt;
&lt;/body&gt;
</code></pre>
<p>Nothing fancy here, result as expected:</p>
<p>Hello world!</p>
<p>Now lets add those two aforementioned lines. Line 6 and line 9 in below listing.</p>
<pre><code class="language-html">&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Custom fonts&lt;/title&gt;
    &lt;meta charset=&quot;utf-8&quot; /&gt;
    &lt;link href=&apos;http://fonts.googleapis.com/css?family=Tangerine&apos; rel=&apos;stylesheet&apos; type=&apos;text/css&apos;&gt;
    &lt;style&gt;
      p.tangerine {
        font-size: 48px;
        font-family: &apos;Tangerine&apos;, serif;
      }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;header&gt;
        &lt;p&gt;Hello world!&lt;/p&gt;
    &lt;/header&gt;
&lt;/body&gt;
</code></pre>
<p>and the effect:</p>
<link href="http://fonts.googleapis.com/css?family=Tangerine" rel="stylesheet" type="text/css">
<style>
  p.tangerine {
    font-size: 48px;
    font-family: 'Tangerine', serif;
  }
</style>
<p class="tangerine">Hello world!</p>
<p>The font directory is a bit limited at the moment but I think we can safely assume that Google will be adding more fonts over time.</p>
<!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>