|
@@ 398-410 (lines=13) @@
|
| 395 |
|
* @author Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl) |
| 396 |
|
* @version 2014-09-20 |
| 397 |
|
*/ |
| 398 |
|
public function Texto($txt, $x=null, $y=null, $align='', $w=0, $link='', $border=0, $fill=false) |
| 399 |
|
{ |
| 400 |
|
if ($x==null) $x = $this->GetX(); |
| 401 |
|
if ($y==null) $y = $this->GetY(); |
| 402 |
|
$textrendermode = $this->textrendermode; |
| 403 |
|
$textstrokewidth = $this->textstrokewidth; |
| 404 |
|
$this->setTextRenderingMode(0, true, false); |
| 405 |
|
$this->SetXY($x, $y); |
| 406 |
|
$this->Cell($w, 0, $txt, $border, 0, $align, $fill, $link); |
| 407 |
|
// restore previous rendering mode |
| 408 |
|
$this->textrendermode = $textrendermode; |
| 409 |
|
$this->textstrokewidth = $textstrokewidth; |
| 410 |
|
} |
| 411 |
|
|
| 412 |
|
/** |
| 413 |
|
* Método idéntico a Texto, pero en vez de utilizar Cell utiliza |
|
@@ 419-431 (lines=13) @@
|
| 416 |
|
* @author Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl) |
| 417 |
|
* @version 2014-09-20 |
| 418 |
|
*/ |
| 419 |
|
public function MultiTexto($txt, $x=null, $y=null, $align='', $w=0, $border=0, $fill=false) |
| 420 |
|
{ |
| 421 |
|
if ($x==null) $x = $this->GetX(); |
| 422 |
|
if ($y==null) $y = $this->GetY(); |
| 423 |
|
$textrendermode = $this->textrendermode; |
| 424 |
|
$textstrokewidth = $this->textstrokewidth; |
| 425 |
|
$this->setTextRenderingMode(0, true, false); |
| 426 |
|
$this->SetXY($x, $y); |
| 427 |
|
$this->MultiCell($w, 0, $txt, $border, $align, $fill); |
| 428 |
|
// restore previous rendering mode |
| 429 |
|
$this->textrendermode = $textrendermode; |
| 430 |
|
$this->textstrokewidth = $textstrokewidth; |
| 431 |
|
} |
| 432 |
|
|
| 433 |
|
} |
| 434 |
|
|