@@ 437-449 (lines=13) @@ | ||
434 | * @author Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl) |
|
435 | * @version 2014-09-20 |
|
436 | */ |
|
437 | public function Texto($txt, $x=null, $y=null, $align='', $w=0, $link='', $border=0, $fill=false) |
|
438 | { |
|
439 | if ($x==null) $x = $this->GetX(); |
|
440 | if ($y==null) $y = $this->GetY(); |
|
441 | $textrendermode = $this->textrendermode; |
|
442 | $textstrokewidth = $this->textstrokewidth; |
|
443 | $this->setTextRenderingMode(0, true, false); |
|
444 | $this->SetXY($x, $y); |
|
445 | $this->Cell($w, 0, $txt, $border, 0, $align, $fill, $link); |
|
446 | // restore previous rendering mode |
|
447 | $this->textrendermode = $textrendermode; |
|
448 | $this->textstrokewidth = $textstrokewidth; |
|
449 | } |
|
450 | ||
451 | /** |
|
452 | * Método idéntico a Texto, pero en vez de utilizar Cell utiliza |
|
@@ 458-470 (lines=13) @@ | ||
455 | * @author Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl) |
|
456 | * @version 2014-09-20 |
|
457 | */ |
|
458 | public function MultiTexto($txt, $x=null, $y=null, $align='', $w=0, $border=0, $fill=false) |
|
459 | { |
|
460 | if ($x==null) $x = $this->GetX(); |
|
461 | if ($y==null) $y = $this->GetY(); |
|
462 | $textrendermode = $this->textrendermode; |
|
463 | $textstrokewidth = $this->textstrokewidth; |
|
464 | $this->setTextRenderingMode(0, true, false); |
|
465 | $this->SetXY($x, $y); |
|
466 | $this->MultiCell($w, 0, $txt, $border, $align, $fill); |
|
467 | // restore previous rendering mode |
|
468 | $this->textrendermode = $textrendermode; |
|
469 | $this->textstrokewidth = $textstrokewidth; |
|
470 | } |
|
471 | ||
472 | } |
|
473 |