Definition at line 36 of file Font.php.
◆ __construct()
Constructor.
- Parameters
-
Definition at line 57 of file Font.php.
59 $this->_colorIndex = 0x7FFF;
◆ _mapBold()
static PHPExcel_Writer_Excel5_Font::_mapBold |
( |
|
$bold | ) |
|
|
staticprivate |
Map to BIFF5-BIFF8 codes for bold.
- Parameters
-
- Returns
- int
Definition at line 135 of file Font.php.
◆ _mapUnderline()
static PHPExcel_Writer_Excel5_Font::_mapUnderline |
( |
|
$underline | ) |
|
|
staticprivate |
Map underline.
- Parameters
-
- Returns
- int
Definition at line 159 of file Font.php.
160 if (isset(self::$_mapUnderline[$underline]))
161 return self::$_mapUnderline[$underline];
◆ setColorIndex()
PHPExcel_Writer_Excel5_Font::setColorIndex |
( |
|
$colorIndex | ) |
|
Set the color index.
- Parameters
-
Definition at line 68 of file Font.php.
70 $this->_colorIndex = $colorIndex;
◆ writeFont()
PHPExcel_Writer_Excel5_Font::writeFont |
( |
| ) |
|
Get font record data.
- Returns
- string
Definition at line 78 of file Font.php.
References $_colorIndex, $data, $header, PHPExcel_Shared_Font\getCharsetFromFontName(), and PHPExcel_Shared_String\UTF8toBIFF8UnicodeShort().
84 if ($this->_font->getSuperScript()) {
86 }
else if ($this->_font->getSubScript()) {
97 if ($this->_font->getItalic()) {
100 if ($this->_font->getStrikethrough()) {
110 $data = pack(
"vvvvvCCCC",
111 $this->_font->getSize() * 20,
114 self::_mapBold($this->_font->getBold()),
116 self::_mapUnderline($this->_font->getUnderline()),
123 $length = strlen(
$data);
124 $header = pack(
"vv", $record, $length);
static getCharsetFromFontName($name)
Returns the associated charset for the font name.
static UTF8toBIFF8UnicodeShort($value, $arrcRuns=array())
Converts a UTF-8 string into BIFF8 Unicode string data (8-bit string length) Writes the string using ...
◆ $_colorIndex
PHPExcel_Writer_Excel5_Font::$_colorIndex |
|
private |
◆ $_font
PHPExcel_Writer_Excel5_Font::$_font |
|
private |
◆ $_mapUnderline
PHPExcel_Writer_Excel5_Font::$_mapUnderline |
|
staticprivate |
Initial value:
Map of BIFF2-BIFF8 codes for underline styles.
array of int
Definition at line 147 of file Font.php.
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Font.php