private function getCharacterWidth($fontName, $fontSize, $char)
    {
        if (!isset($this->sizes[$fontName][$fontSize][$char])) {
            $this->sizes[$fontName][$fontSize][$char] =
                $this->calculateCharacterWith($fontName, $fontSize, $char);
        }

        return $this->sizes[$fontName][$fontSize][$char];
    }
private function getCharacterWidth($fontName, $fontSize, $char)
    {
        if (!isset($this->sizes[$fontName][$fontSize][$char])) {
            $this->sizes[$fontName][$fontSize][$char] =
                $this->calculateCharacterWith($fontName, $fontSize, $char);
        }

        return $this->sizes[$fontName][$fontSize][$char];
    }
private function getCharacterWidth ( $ fontName , $ fontSize , $ char ) { if ( ! isset ( $ this -> sizes [ $ fontName ] [ $ fontSize ] [ $ char ] ) ) { $ this -> sizes [ $ fontName ] [ $ fontSize ] [ $ char ] = $ this -> calculateCharacterWith ( $ fontName , $ fontSize , $ char ) ; } return $ this -> sizes [ $ fontName ] [ $ fontSize ] [ $ char ] ; }
Get width of a single character. Calculate & cache if necessary.

@param string $fontName
@param int    $fontSize
@param string $char

@return float
Get width of a single character . Calculate & cache if necessary .