ILIAS
Release_4_0_x_branch Revision 61816
|
Static Public Member Functions | |
static | calculateColumnWidth ($fontSize=9, $fontSizeInPixels=false, $columnText= '', $rotation=0) |
Calculate an (approximate) OpenXML column width, based on font size and text contained. | |
static | fontSizeToPixels ($fontSizeInPoints=12) |
Calculate an (approximate) pixel size, based on a font points size. | |
static | inchSizeToPixels ($sizeInInch=1) |
Calculate an (approximate) pixel size, based on inch size. | |
static | centimeterSizeToPixels ($sizeInCm=1) |
Calculate an (approximate) pixel size, based on centimeter size. | |
static | getCharsetFromFontName ($name) |
Returns the associated charset for the font name. |
Data Fields | |
const | CHARSET_ANSI_LATIN = 0x00 |
Character set codes used by BIFF5-8 in Font records. | |
const | CHARSET_SYSTEM_DEFAULT = 0x01 |
const | CHARSET_SYMBOL = 0x02 |
const | CHARSET_APPLE_ROMAN = 0x4D |
const | CHARSET_ANSI_JAPANESE_SHIFTJIS = 0x80 |
const | CHARSET_ANSI_KOREAN_HANGUL = 0x81 |
const | CHARSET_ANSI_KOREAN_JOHAB = 0x82 |
const | CHARSET_ANSI_CHINESE_SIMIPLIFIED = 0x86 |
const | CHARSET_ANSI_CHINESE_TRADITIONAL = 0x88 |
const | CHARSET_ANSI_GREEK = 0xA1 |
const | CHARSET_ANSI_TURKISH = 0xA2 |
const | CHARSET_ANSI_VIETNAMESE = 0xA3 |
const | CHARSET_ANSI_HEBREW = 0xB1 |
const | CHARSET_ANSI_ARABIC = 0xB2 |
const | CHARSET_ANSI_BALTIC = 0xBA |
const | CHARSET_ANSI_CYRILLIC = 0xCC |
const | CHARSET_ANSI_THAI = 0xDE |
const | CHARSET_ANSI_LATIN_II = 0xEE |
const | CHARSET_OEM_LATIN_I = 0xFF |
|
static |
Calculate an (approximate) OpenXML column width, based on font size and text contained.
int | $fontSize | Font size (in pixels or points) |
bool | $fontSizeInPixels | Is the font size specified in pixels (true) or in points (false) ? |
string | $columnText | Text to calculate width |
int | $rotation | Rotation angle |
Definition at line 68 of file Font.php.
References fontSizeToPixels().
Referenced by PHPExcel_Worksheet\calculateColumnWidths().
|
static |
Calculate an (approximate) pixel size, based on centimeter size.
int | $sizeInCm | Font size (in centimeters) |
Definition at line 134 of file Font.php.
Referenced by PHPExcel_Reader_Excel2007\toCSSArray().
|
static |
Calculate an (approximate) pixel size, based on a font points size.
int | $fontSizeInPoints | Font size (in points) |
Definition at line 114 of file Font.php.
Referenced by calculateColumnWidth(), and PHPExcel_Reader_Excel2007\toCSSArray().
|
static |
Returns the associated charset for the font name.
string | $name | Font name |
Definition at line 144 of file Font.php.
References $name, CHARSET_ANSI_LATIN, and CHARSET_SYMBOL.
Referenced by PHPExcel_Writer_Excel5_Font\writeFont().
|
static |
Calculate an (approximate) pixel size, based on inch size.
int | $sizeInInch | Font size (in inch) |
Definition at line 124 of file Font.php.
Referenced by PHPExcel_Reader_Excel2007\toCSSArray().
const PHPExcel_Shared_Font::CHARSET_ANSI_CHINESE_SIMIPLIFIED = 0x86 |
const PHPExcel_Shared_Font::CHARSET_ANSI_CHINESE_TRADITIONAL = 0x88 |
const PHPExcel_Shared_Font::CHARSET_ANSI_JAPANESE_SHIFTJIS = 0x80 |
const PHPExcel_Shared_Font::CHARSET_ANSI_KOREAN_HANGUL = 0x81 |
const PHPExcel_Shared_Font::CHARSET_ANSI_KOREAN_JOHAB = 0x82 |
const PHPExcel_Shared_Font::CHARSET_ANSI_LATIN = 0x00 |
Character set codes used by BIFF5-8 in Font records.
Definition at line 39 of file Font.php.
Referenced by getCharsetFromFontName().
const PHPExcel_Shared_Font::CHARSET_SYMBOL = 0x02 |
Definition at line 41 of file Font.php.
Referenced by getCharsetFromFontName().