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