redarrow Posted March 8, 2013 Share Posted March 8, 2013 .mainpagekeyword { font-family: 'AgentRed'; src: url("font/fonts/AgentRed.ttf") format("truetype"); font-weight: normal; font-style: normal font-size: 16px; font-weight: bold; text-decoration:none; margin: 10px; color:#e8743f } I am trying to add a font the folder is font/fonts/AgenRed.ttf no error just does not work any ideas please? i done it. @font-face { font-family: "AgentRed"; src: url(http://www.your url/folder/font_folder/AgentRed.ttf) format("truetype"); } .mainpagekeyword { font-family: "AgentRed", Verdana, Tahoma; font-weight: normal; font-style: normal font-size: 16px; font-weight: bold; text-decoration:none; margin: 10px; color:#e8743f } DONE IT. Link to comment https://forums.phpfreaks.com/topic/275406-fonts-with-php/ Share on other sites More sharing options...
cyberRobot Posted March 8, 2013 Share Posted March 8, 2013 I'm pretty sure fonts don't work that way. I would imagine that this would lead to potential copyright violations. Have you looked at the fonts available through services like Google Web Fonts: http://www.google.com/webfonts Link to comment https://forums.phpfreaks.com/topic/275406-fonts-with-php/#findComment-1417496 Share on other sites More sharing options...
cyberRobot Posted March 8, 2013 Share Posted March 8, 2013 Huh, color me surprised: http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp But it looks like you've already figured out the solution. Link to comment https://forums.phpfreaks.com/topic/275406-fonts-with-php/#findComment-1417497 Share on other sites More sharing options...
redarrow Posted March 8, 2013 Author Share Posted March 8, 2013 it's seo complient so im happy. Link to comment https://forums.phpfreaks.com/topic/275406-fonts-with-php/#findComment-1417505 Share on other sites More sharing options...
Love2c0de Posted March 9, 2013 Share Posted March 9, 2013 On 3/8/2013 at 1:35 PM, cyberRobot said: I'm pretty sure fonts don't work that way. I would imagine that this would lead to potential copyright violations. Have you looked at the fonts available through services like Google Web Fonts: http://www.google.com/webfonts Never knew it existed! nice one. Link to comment https://forums.phpfreaks.com/topic/275406-fonts-with-php/#findComment-1417718 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.