CJKforceend
(mPDF ≥ 5.7)
bool $CJKforceend
CJK line-breaking is implemented in mPDF roughly according to accepted rules.
Configurable variables allow fine control of behaviour:
<?php
$this->CJKforceend = false;
false
: Forces overflowing punctuation to hang outside right margin (used with CJK script)
Default: false
<?php
$this->allowCJKorphans = true;
Values
false
: always wrap to next linetrue
: squeeze or overflow
Default: true
<?php
$this->allowCJKoverflow = false;
Values
false
: squeezetrue
: overflow (only selected)
Default: false
IF $this->allowCJKorphans == true
AND $this->allowCJKoverflow == true
AND $this->CJKforceend == true
AND text-align:justify
will force hanging punctuation to hang outside right margin.
See also: