Jump to content

fonts with php.


redarrow

Recommended Posts

.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

  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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.