الصفحة الرئيسية
المزايا
المشروع
روابط مفيدة
حولنا
تنزيل
الأسئلة الشائعة
النسخة القديمة





 
Related Class Documentation

<?php
  
// Set the content-type
  
header("Content-type: image/png");
  
  
// Create the image
  
$im = @imagecreatefromgif('GD/bg.gif');
  
  
// Create some colors
  
$black imagecolorallocate($im000);
  
$blue  imagecolorallocate($im00255);
  
  
// Replace by your own font 
  // full path and name
  
$local $_SERVER['SCRIPT_FILENAME'];
  
$pos   strrpos($script'/');
  
$path  substr($script0$pos);
  
$font  $path.'/GD/ae_AlHor.ttf';
  
  
// UTF-8 charset
  
$text 'بسم الله الرحمن الرحيم';

  
imagettftext($im20010,
               
50$blue$font'UTF-8:');

  
imagettftext($im200200,
               
50$black$font$text);

  include(
'../Arabic.php');
  
$Arabic = new Arabic('ArGlyphs');

  
$text 'بسم الله الرحمن الرحيم';
  
$text $Arabic->utf8Glyphs($text);

  
imagettftext($im20010,
          
100$blue$font'ArGlyphs:');

  
imagettftext($im200200,
          
100$black$font$text);
  
  
// Using imagepng() results in clearer 
  // text compared with imagejpeg()
  
imagepng($im);
  
imagedestroy($im);
?>
An expert is one who knows more and more about less and less until he knows absolutely everything about nothing.
الخبير هو الذي يعرف أكثر وأكثر عن أشياء أدق وأدق .... حتى يصل الى أن يعرف كل شيء عن .. لاشيء
Index | Features | ArPHP Project | Useful Links | About Us | Download | PHP4!!!

Copyright © 2006 - 2011 Ar-PHP. All Rights Reserved | Sourceforge.net | Terms Of Use

 

  If not now when? If not you and me who else? | إن لم يكن الآن فمتى؟ إن لم تكن أنت وأنا فمن غيرنا؟