Test Ar-PHP Functionality Online
Test PHP Function
Sub Class:
- Select one -
AutoSummarize
CharsetD
CompressStr
Date
Gender
Glyphs
Hiero
Identifier
KeySwap
Mktime
Normalise
Numbers
Query
Salat
Sort
Soundex
Standard
Stemmer
StrToTime
Transliteration
WordTag
Method:
- Select one -
getGlyphs
preConvert
a4MaxChars
a4Lines
utf8Glyphs
decodeEntities
decodeEntities2
font:
Result (
var_dump
output):
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
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'Glyphs'
)
;
$text
=
$obj
->
utf8Glyphs
(
$text
)
;
imagettftext
(
$im
,
20
,
0
,
200
,
100
,
$black
,
$font
,
$text
)
;
Popular
utf8Glyphs
(1182)
ar2en
(963)
money2str
(550)
en2ar
(394)
isFemale
(291)
Recent
a4Lines
(8 days)
utf8Glyphs
(8 days)
ar2en
(8 days)
money2str
(30 days)
str2graph
(30 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa