font custom/unik pada halaman website

font unik atau aneh yang tidak disetiap komputer ada


<html><head><title>@Gw</title>
<style type="text/css">
@font-face {
 font-family: Arista2;
 src: url(Arista2.0.ttf);
}
.arista {
 font-family: Arista2,sans;
 color:hotpink;
 font-size:3em;
 text-align:center;
}
</style>
</head>
<body>
<p class='arista'>arista page here</arista>
</body>
</html>


tetapi agar dapat menjangkau ‘seluruh’ browser lebih baik gunakan deklarasi lengkap dan file font yang lengkap seperti ini:

@font-face {
 font-family: 'Arista2';
 src: url('Arista2.0.otf');
 src: local('?'), url('Arista2.0.woff') format('woff'), 
url('Arista2.0.ttf') format('truetype'), 
url('Arista2.0.svg#webfontzqb2Knxj') format('svg');
}

Published by

G3n1k

just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s