Test Ar-PHP Functionality Online

header line!
Test PHP Function










Ar-PHP Manual

method a4MaxChars [line 318]

integer a4MaxChars( integer $font)

Regression analysis calculate roughly the max number of character fit in one A4 page line for a given font size.



Tags:

return:  Maximum number of characters per line
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

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