/** * Calculate the rendered width of the current word * * Calculate the width of the passed word, using the currently set text * formatting options. * * @param string $word * @return float */ public function calculateWordWidth($word) { if ($this->document === null) { $this->initialize(); } return $this->document->GetStringWidth($word); }
/** * Calculate the rendered width of the current word * * Calculate the width of the passed word, using the currently set text * formatting options. * * @param string $word * @return float */ public function calculateWordWidth($word) { return $this->document->GetStringWidth($word); }