Jump to content

Recommended Posts

Another question again guys.. tnx!!

 

 

How to change the font of my content from .tff file??

 

i have a Tangerine_Regular.ttf file inside the font folder..

 

 

  <h3>About Page</h3>
                   <div style="border: 1px solid #000000; 
                   width :580px; 
                   margin-top: 20px; 
                   margin-left: 25px; 
                   margin-right: 20px; 
                   margin-bottom: 20px;
                   <?php 	$font = dirName(__FILE__).'/font/karate/Tangerine_Regular.ttf';?> 
                   font-size: 16px;
                   font-family: 'Courier New', Courier, monospace; 
                   padding:20px 20px 20px 20px; 
                   background-color: #F5F5FF;">
             
 <?php 

			echo "<br><br><center><img src='images/mission.png' />";    
		echo "<br><br><p align='justify' style='margin-left:2em; margin-right:2em'> 
					AMA will be the leader and dominant provider of relevant golabally
					recognized information technology-based education and related
					services in the global market.
				</p><br><br><br>
				<img src='images/vision.png' />    
				<br><br><p align='justify' style='margin-left:2em; margin-right:2em'> 
					AMA Computer University / AMA Computer College shall provide a holistic,relevant, quality and globally recognized
					IT-based education in all levels and disciplines with the objective of producing professional and leaders
					responsive to the needs of Science and the international community cognizant of the welfare and benefits of its men
					and women thereby realizing their petential as productive members of the society for the honor and glory of
					God almight.
				</p>
				</center>";
	 ?> 

</div>

Link to comment
https://forums.phpfreaks.com/topic/266379-change-font-from-ttf-file/
Share on other sites

http://www.font2web.com/

 

That site is pretty cool.  It'll take .ttf's and .otf's and give you a .zip with .ttf, .otf, .eot, .woff and .svg files to use like:

 

@font-face {
font-family: font-name;
src: url('Font.ttf'),
     url('Font.otf');
     url('Font.eot');
     url('Font.woff');
     url('Font.svg');
}

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.