@@ 426-438 (lines=13) @@ | ||
423 | * @author Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl) |
|
424 | * @version 2014-09-20 |
|
425 | */ |
|
426 | public function Texto($txt, $x=null, $y=null, $align='', $w=0, $link='', $border=0, $fill=false) |
|
427 | { |
|
428 | if ($x==null) $x = $this->GetX(); |
|
429 | if ($y==null) $y = $this->GetY(); |
|
430 | $textrendermode = $this->textrendermode; |
|
431 | $textstrokewidth = $this->textstrokewidth; |
|
432 | $this->setTextRenderingMode(0, true, false); |
|
433 | $this->SetXY($x, $y); |
|
434 | $this->Cell($w, 0, $txt, $border, 0, $align, $fill, $link); |
|
435 | // restore previous rendering mode |
|
436 | $this->textrendermode = $textrendermode; |
|
437 | $this->textstrokewidth = $textstrokewidth; |
|
438 | } |
|
439 | ||
440 | /** |
|
441 | * Método idéntico a Texto, pero en vez de utilizar Cell utiliza |
|
@@ 447-459 (lines=13) @@ | ||
444 | * @author Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl) |
|
445 | * @version 2014-09-20 |
|
446 | */ |
|
447 | public function MultiTexto($txt, $x=null, $y=null, $align='', $w=0, $border=0, $fill=false) |
|
448 | { |
|
449 | if ($x==null) $x = $this->GetX(); |
|
450 | if ($y==null) $y = $this->GetY(); |
|
451 | $textrendermode = $this->textrendermode; |
|
452 | $textstrokewidth = $this->textstrokewidth; |
|
453 | $this->setTextRenderingMode(0, true, false); |
|
454 | $this->SetXY($x, $y); |
|
455 | $this->MultiCell($w, 0, $txt, $border, $align, $fill); |
|
456 | // restore previous rendering mode |
|
457 | $this->textrendermode = $textrendermode; |
|
458 | $this->textstrokewidth = $textstrokewidth; |
|
459 | } |
|
460 | ||
461 | } |
|
462 |