/**
  * Get the character heights
  * @returns array of number, the values of which are the heights
  * and the keys of which are some combination of
  * glpyh names, character codes, and unicodes codepoints, or characters
  */
 public function getCharacterHeights()
 {
     if ($this->direction != -1) {
         return $this->font_metrics[$this->direction]->getCharacterHeights();
     } else {
         return parent::getCharacterHeights();
     }
 }