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
str:
font:
Result (
var_dump
output):
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
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'Glyphs'
)
;
$text
=
$obj
->
utf8Glyphs
(
$text
)
;
imagettftext
(
$im
,
20
,
0
,
200
,
100
,
$black
,
$font
,
$text
)
;
Popular
utf8Glyphs
(1224)
ar2en
(973)
money2str
(550)
en2ar
(400)
isFemale
(291)
Recent
setMode
(23 hours)
ar2en
(2 days)
a4MaxChars
(5 days)
utf8Glyphs
(5 days)
a4Lines
(5 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa