font custom/unik pada halaman website

font unik atau aneh yang tidak disetiap komputer ada

<style type="text/css">
@font-face {
 font-family: Arista2;
 src: url(Arista2.0.ttf);
.arista {
 font-family: Arista2,sans;
<p class='arista'>arista page here</arista>

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


just to remember what i had known :)

Leave a Reply

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

You are commenting using your 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