Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/pdf/pdf_text.php
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Line(s) | |||||
$new_elem->Closed(); | $new_elem->Closed(); | ||||
} | } | ||||
foreach ($removed as $elem) { | foreach ($removed as $elem) { | ||||
$next_line->AddChild( $elem, false ); //don't init | $next_line->AddChild( $elem, false ); //don't init | ||||
} | } | ||||
} | } | ||||
function DrawAt($page, $x, $y, $spacer_w=0) | function DrawAt($page, $x=0, $y=0, $spacer_w=0) | ||||
{ | { | ||||
$page->SetLineWidth(0.1); | $page->SetLineWidth(0.1); | ||||
$y += $this->Ascent; //finding baseline | $y += $this->Ascent; //finding baseline | ||||
$this->Helper->PDF->SetFont( $this->GetCSSProperty('font-family'), $this->GetCSSProperty('font-size'), $this->GetCSSProperty('font-weight'), $this->GetCSSProperty('font-style'), $this->GetCSSProperty('font-variant')); | $this->Helper->PDF->SetFont( $this->GetCSSProperty('font-family'), $this->GetCSSProperty('font-size'), $this->GetCSSProperty('font-weight'), $this->GetCSSProperty('font-style'), $this->GetCSSProperty('font-variant')); | ||||
if ($color = $this->GetCSSProperty('color')) { | if ($color = $this->GetCSSProperty('color')) { | ||||
$page->SetFillColor($color); | $page->SetFillColor($color); | ||||
} | } | ||||
Show All 11 Lines | |||||
$page->drawText($word, $x, $y); | $page->drawText($word, $x, $y); | ||||
$x += $page->GetStringWidth($word); | $x += $page->GetStringWidth($word); | ||||
$x += $spacer_w; | $x += $spacer_w; | ||||
} | } | ||||
} | } | ||||
$this->CurX = $x; | $this->CurX = $x; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |