<font face="martel" font size"you size here" font color"you color here"> TEXT HERE </font>
<font face="martel" font size="you size here" font color="you color here"> texthere </font>
And when the user doesn't have the font installed...?OMG .! no need that
go in site : Martel.ttf Font Celtic - Windows or Mac: for Microsoft Office, Photoshop, and Design Software
then download ttf font ... put in you main directory of fonts if windows is
C:\WINDOWS\Fonts paste the ttf font in that directory and after use only this html basic code
PHP:<font face="martel" font size"you size here" font color"you color here"> TEXT HERE </font>
function changeFirstLetter($string,$path='',$ext='.gif',$checkIfFileExists=false)
{
$tpl = "<img src='{path}' alt='' title=''/>";
if(is_string($string) && strlen($string)>0)
{
$string = ucfirst($string);
$ASCII = ord($string[0]);
//if($ASCII > 0x40 && $ASCII < 0x5A)
if(preg_match('/^[A-Z]{1}/',$string))
{
$path = $path.$ASCII.$ext;
if(file_exists($path) || !$checkIfFileExists)
{
$string = str_replace($string[0],$tpl,$string);
$string = str_replace('{path}',$path,$string);
}
}
}
return $string;
}
<p style="color:red;"></p>
<p style="color:RGB(255,0,0);"></p>
Here is the automatic working one
PHP:<? $content = strtoupper('Hi my name is Paxton'); for ($i = 0; $i < strlen($content); ++$i) { if($content[$i] == " ") echo " "; else echo "<img src='http://static.tibia.com/images/global/letters/letter_martel_$content[$i].gif' />"; } ?>
In:
PHP:$content = strtoupper('Hi my name is Paxton');
Write your sentence. :thumbup:
function TibiaFirstLetter($str){
$tmp=$str[0];
$tmp='<img alt="'.$tmp.'" src="letters/'.strtoupper($tmp).'.gif" />';
$str=substr($str,1);
$str=$tmp.$str;
return $str;
}
function TibiaAllLetter($str){
$ret='';
$str=str_split($str,1);
foreach($str as $chr){
if(stripos($chr,'abcdefghijklmnopqrstuvwxyz')===false){
$ret.=$chr
} else {
$ret.='<img alt="'.$chr.'" src="letters/'.strtoupper($chr).'.gif" />';
}
}
return $ret;
}