WELL font file ko humein CSS main embedd krwa kr use krna hota hai!
Aik example main ne special ap ke leye banae hai.Jis main aik font ko embedd krwa kr HTML file main use kiya geya hai!
Note: This technique doesnt work in Internet Explorer, Kyu ke INTERNET Explorer .EOT font use karti hai TFF nahe
Extract zip file and run INDEX.hTML. Agr font file koe aur apply krni ho to "myfontsettings.css" open kr ke
Code:
#label {font-family: MyFont; color: black; font-size: 80px}
@font-face {
font-family: MyFonT;
src: url('customfont.ttf');
}
customfont.ttf ki jaga dosray .ttf font ka name likhain aur is font ko usi folder main hona chahiye jis folder main CSS file rakhi hai!
#LABEL main ap apna font color aur size bhi change kr saktay ho.
HTML main yeh font use krnay keleye simple
Code:
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/myfontsettings.css" media="all">
</head>
<body>
<div id="label">I T D U N Y A . C O M </div>
</body>
</html>
Bookmarks