Jump to content

fonts with php.


Go to solution Solved by 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.

Edited by redarrow
Link to comment
https://forums.phpfreaks.com/topic/275406-fonts-with-php/
Share on other sites

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.