sfx Posted November 7, 2008 Report Share Posted November 7, 2008 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 More sharing options...
bubu Posted November 7, 2008 Report Share Posted November 7, 2008 Tā nebija IE only fīča? Link to comment Share on other sites More sharing options...
sfx Posted November 7, 2008 Author Report Share Posted November 7, 2008 Nu šitas man liekas, ka ir standartos itkā: http://www.w3.org/TR/CSS2/fonts.html Link to comment Share on other sites More sharing options...
Gstyle Posted November 7, 2008 Report Share Posted November 7, 2008 neesmu dros, bet man liekas ka tev url: nepareizs - vajadzeetu buut localhost nevis local. Link to comment Share on other sites More sharing options...
bubu Posted November 7, 2008 Report Share Posted November 7, 2008 "Standartos" jau labu laiku ir arī CSS3: http://www.w3.org/Style/CSS/current-work#CSS3 Taču neviens browseris to patlaban neatbalsta. Man, piemēram, lietojot Firefox3, http://www.alistapart.com/articles/cssatten atrodamie piemēri nemaz neizkatās tā kā tur skrīnšotos parādīts. Link to comment Share on other sites More sharing options...
Recommended Posts