/** * Sets the character width of a character * @param mixed $ch a character * @param float $w the width */ public function setCharacterWidth($ch, $w) { if ($this->direction != -1) { $this->font_metrics[$this->direction]->setCharacterWidth($ch, $w); } else { parent::setCharacterWidth($ch, $w); } }