Jump to content
php.lv forumi

@font-face


sfx
 Share

Recommended Posts

Atradu variantus kā ielādēt fontus ar css, bet kautkā nestrādā (WinXP/Apache2).

#1

@font-face {
 font-family: "Trebuchet MS";
 src: url("http://local/fonts/Trebuched/trebuc.ttf")
}
div.text{ font-family: "Trebuchet MS";

#2

@font-face {
 src: local("Trebuchet MS"),
	 url("http://local/fonts/Trebuched/trebuc.ttf");
 font-family: "Trebuchet MS";
}
div.text{ font-family: "Trebuchet MS";

 

Varbūt ir vēl kāds cits variants, kā to var izdarīt?

Link to comment
Share on other sites

 Share

×
×
  • Create New...