How to Licence Apple Fonts for Web Usage
… not so easy as first thought: Buy a “Web-Licence” or “Web-Font” and use it on your page … thats not possible with apple fonts.
If you want browsersafe use one of more than 300 adobe webfonts like myriad, garamond or juniper you have to do it via typekit or webink. Just this two vendors can sell web licences for apple fonts.
Both services are easy to use: Just select the fonts you want to use and then insert the provided snippet in your webpage. Typekit uses javascript to deliver the font, webink do it with css-tag. So i like the webink delivery version more.
<!-- html head -->
<link href="http://fnt.webink.com/wfs/webink.css/
?project=CD0700EA-B4D9-4AFA-A52E-1F3AB19287CF
&fonts=73E6C83D-7F13-A8AE-4770-C315AE5061C3:f=MyriadPro-Regular" rel="stylesheet" type="text/css"/> |
/* in css */ @import url("http://fnt.webink.com/wfs/webink.css/ ?project=CD0700EA-B4D9-4AFA-A52E-1F3AB19287CF &fonts=73E6C83D-7F13-A8AE-4770-C315AE5061C3:f=MyriadPro-Regular"); |
The pricing is based on website usage … typekit on pageviews and webink on unique users. The prices goes from free to 120 USD per year for larger websites. More Infos you can find on the Adobe web fonts site.



Watermarking an image in PHP is very easy. If you follow the code below, you can do it in 2 minutes.
<?php
function watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile) {
//$SourceFile is source of the image file to be watermarked
//$WaterMarkText is the text of the watermark
//$DestinationFile is the destination location where the watermarked images will be placed
//Delete if destinaton file already exists
@unlink($DestinationFile);
//This is the vertical center of the image
$top = getimagesize($SourceFile);
$top = $top[1]/2;
list($width, $height) = getimagesize($SourceFile);
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($SourceFile);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width, $height);
//Path to the font file on the server. Do not miss to upload the font file
$font = ‘arial.ttf’;
//Font sie
$font_size = 16;
//Give a white shadow
$white = imagecolorallocate($image_p, 255, 255, 255);
imagettftext($image_p, $font_size, 0, 10, $top, $white, $font, $WaterMarkText);
//Print in black color
$black = imagecolorallocate($image_p, 0, 0, 0);
imagettftext($image_p, $font_size, 0, 8, $top-1, $black, $font, $WaterMarkText);
if ($DestinationFile”) {
imagejpeg ($image_p, $DestinationFile, 100);
} else {
header(‘Content-Type: image/jpeg’);
imagejpeg($image_p, null, 100);
};
imagedestroy($image);
imagedestroy($image_p);
};
?>
<?php
$SourceFile = ‘image.jpg’;//Source image
$DestinationFile = ‘watermarked/image.jpg’;//Destination path
$WaterMarkText = ‘www.phpHelp.co’;//Watermark text
//Call the function to watermark the image
watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile);
//Display watermarked image if desired
if(file_exists($DestinationFile)){
echo “”;
echo “The image has been watermarked at ‘”.$DestinationFile.”‘”;
}
?>
Note:
This code is being provided to you as a help by http://www.phpHelp.co without any warranty and liability
Place all the files in a folder on web server.
Do not forget to upload the font file – arial.ttf.
Once the image is watermarked, it will be placed in the folder named ‘watermarked’.
You might need to give ‘write permission’ or ’777 permission’ to the folder named ‘watermarked’ as the new watermarked image will be written in this folder.
Source:
http://addr.pk/a730e
AND
http://phphelp.co/2012/06/01/how-to-watermark-an-image-in-php/