|
@@ 3204-3209 (lines=6) @@
|
| 3201 |
|
$i=$i+$directive-1; |
| 3202 |
|
} else { |
| 3203 |
|
$cOrd = ord($text[$i]); |
| 3204 |
|
if (isset($this->fonts[$cf]['differences'][$cOrd])) { |
| 3205 |
|
// then this character is being replaced by another |
| 3206 |
|
$cOrd2 = $this->fonts[$cf]['differences'][$cOrd]; |
| 3207 |
|
} else { |
| 3208 |
|
$cOrd2 = $cOrd; |
| 3209 |
|
} |
| 3210 |
|
|
| 3211 |
|
if (isset($this->fonts[$cf]['C'][$cOrd2])) { |
| 3212 |
|
$w+=$this->fonts[$cf]['C'][$cOrd2]; |
|
@@ 3238-3240 (lines=3) @@
|
| 3235 |
|
$tmp = substr($text, 0, $i); |
| 3236 |
|
$adjust=0; |
| 3237 |
|
$ctmp=ord($text[$i]); |
| 3238 |
|
if (isset($this->fonts[$cf]['differences'][$ctmp])) { |
| 3239 |
|
$ctmp=$this->fonts[$cf]['differences'][$ctmp]; |
| 3240 |
|
} |
| 3241 |
|
$tmpw=($w-$this->fonts[$cf]['C'][$ctmp])*$size/1000; |
| 3242 |
|
$this->adjustWrapText($tmp, $tmpw, $width, $x, $adjust, $justification); |
| 3243 |
|
// reset the text state |
|
@@ 3259-3261 (lines=3) @@
|
| 3256 |
|
if ($text[$i]==' ') { |
| 3257 |
|
$break=$i; |
| 3258 |
|
$ctmp=ord($text[$i]); |
| 3259 |
|
if (isset($this->fonts[$cf]['differences'][$ctmp])) { |
| 3260 |
|
$ctmp=$this->fonts[$cf]['differences'][$ctmp]; |
| 3261 |
|
} |
| 3262 |
|
$breakWidth = ($w-$this->fonts[$cf]['C'][$ctmp])*$size/1000; |
| 3263 |
|
} |
| 3264 |
|
} |