redarrow Posted March 8, 2013 Share Posted March 8, 2013 (edited) .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. Edited March 8, 2013 by redarrow Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/275406-fonts-with-php/#findComment-1417497 Share on other sites More sharing options...
Solution redarrow Posted March 8, 2013 Author Solution Share Posted March 8, 2013 it's seo complient so im happy. Quote 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 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. Quote Link to comment https://forums.phpfreaks.com/topic/275406-fonts-with-php/#findComment-1417718 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.