You are here

public static function PHPExcel_Shared_Font::getCharsetFromFontName in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Font.php \PHPExcel_Shared_Font::getCharsetFromFontName()

* Returns the associated charset for the font name. * *

Parameters

string $name Font name: * @return int Character set code

1 call to PHPExcel_Shared_Font::getCharsetFromFontName()
PHPExcel_Writer_Excel5_Font::writeFont in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Font.php
* Get font record data * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Font.php, line 551

Class

PHPExcel_Shared_Font
PHPExcel_Shared_Font

Code

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;
  }
}