public static function getCharsetFromFontName($name)
    {
        switch ($name) {
            // Add more cases. Check FONT records in real Excel files.
            case 'EucrosiaUPC':
                return self::CHARSET_ANSI_THAI;
            case 'Wingdings':
                return self::CHARSET_SYMBOL;
            case 'Wingdings 2':
                return self::CHARSET_SYMBOL;
            case 'Wingdings 3':
                return self::CHARSET_SYMBOL;
            default:
                return self::CHARSET_ANSI_LATIN;
        }
    }
public static function getCharsetFromFontName($name)
    {
        switch ($name) {
            // Add more cases. Check FONT records in real Excel files.
            case 'EucrosiaUPC':
                return self::CHARSET_ANSI_THAI;
            case 'Wingdings':
                return self::CHARSET_SYMBOL;
            case 'Wingdings 2':
                return self::CHARSET_SYMBOL;
            case 'Wingdings 3':
                return self::CHARSET_SYMBOL;
            default:
                return self::CHARSET_ANSI_LATIN;
        }
    }
public static function getCharsetFromFontName ( $ name ) { switch ( $ name ) { // Add more cases. Check FONT records in real Excel files. case 'EucrosiaUPC' : return self :: CHARSET_ANSI_THAI ; case 'Wingdings' : return self :: CHARSET_SYMBOL ; case 'Wingdings 2' : return self :: CHARSET_SYMBOL ; case 'Wingdings 3' : return self :: CHARSET_SYMBOL ; default : return self :: CHARSET_ANSI_LATIN ; } }
Returns the associated charset for the font name.

@param string $name Font name
@return int Character set code
Returns the associated charset for the font name .