Test Ar-PHP Functionality Online

header line!
Test PHP Function













Ar-PHP Manual

method a4Lines [line 335]

integer a4Lines( string $str, integer $font)

Calculate the lines number of given Arabic text and font size that will fit in A4 page size



Tags:

return:  Number of lines for a given Arabic string in A4 page size
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $str   Arabic string you would like to split it into lines
integer   $font   Font size

Example
  1.    include('./I18N/Arabic.php');
  2.    $obj new I18N_Arabic('Glyphs');
  3.  
  4.    $text $obj->utf8Glyphs($text);
  5.  
  6.    imagettftext($im200200100$black$font$text);
Popular
Recent
Links
Ads!
footer line!

No Software Patents! General Public License

Home | Twitter | Blog | Contact

Copyright © 2006 - 2016 Khaled Al-Sham'aa