/** * set the kerning values associated to a pair of character * @param mixed $ch1 the preceeding character * @param mixed $ch2 the following character * @params numeric $kern the kerning value */ public function setKerningByPair($ch1, $ch2, $kern) { if ($this->direction == -1) { foreach ($this->directions as $direction) { $this->font_metrics[$direction]->setKerningByPair($ch1, $ch2, $kern); } parent::setKerningByPair($ch1, $ch2, $kern); } else { $this->font_metrics[$this->direction]->setKerningByPair($ch1, $ch2, $kern); } }