2011年1月7日

Google Font API




    在Google Labs上有一個Google Font API的功能,讓使用者除了常用的Times New Roman、Arial外,還可以有一些新的英文字型選擇。以下就用Linkin' Park的歌 "From the inside"來測試一下。使用的方法非常簡單,只要針對想要使用的google font做一個連結,然後在css裡面設定一個class



<link href="http://fonts.googleapis.com/css?family=Tangerine" rel="stylesheet" type="text/css">
</link>
<style>
.googlefont1 { font-family: 'Tangerine', arial, serif;}
</style>

最後在網頁元素上套用這個class即可。



From the inside   ~Linkin' Park~ 


I don't know who to trust, no surprise
(Everyone feels so far away from me)
Heavy thoughts sift through the dust
And the lies
(Trying not to break,
But I'm so tired of this deceit
Everytime I try to make myself
Get back up on my feet
All I ever think about is this
All the tiring and time between
And how trying to put my trust in you
Just takes so much out of me)

[Chorus:]
Take everything from the inside
And throw it all away
'Cause I swear, for the last time
I won't trust myself with you

Tension is building inside, steadily
(Everyone feels so far away from me)
Heavy thoughts forcing their way, out of me
(Trying not to break
But I'm so tired of this deceit
Everytime I try to make myself
Get back up on my feet
All I ever think about is this
All the tiring and time between
And how, trying to put my trust in you
Just takes so much out of me)

[Chorus: Repeat]

I wont waste myself on you!
You! [x2]
Waste myself on you!
You! [x2]

[Chorus: Repeat (x2)]

You! [x3]

Facebook 回應

0 意見:

張貼留言