Documentation

Font
in package

Table of Contents

Properties

$colorIndex  : int
Color index.
$font  : Font
Font.
$mapUnderline  : array<string|int, int>
Map of BIFF2-BIFF8 codes for underline styles.
$notImplemented  : int

Methods

__construct()  : mixed
Constructor.
setColorIndex()  : void
Set the color index.
writeFont()  : string
Get font record data.
mapBold()  : int
Map to BIFF5-BIFF8 codes for bold.
mapUnderline()  : int
Map underline.

Properties

$colorIndex

Color index.

private int $colorIndex

$mapUnderline

Map of BIFF2-BIFF8 codes for underline styles.

private static array<string|int, int> $mapUnderline = [\PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_NONE => 0x0, \PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_SINGLE => 0x1, \PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_DOUBLE => 0x2, \PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_SINGLEACCOUNTING => 0x21, \PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_DOUBLEACCOUNTING => 0x22]

$notImplemented

private static int $notImplemented = 0

Methods

__construct()

Constructor.

public __construct(Font $font) : mixed
Parameters
$font : Font

setColorIndex()

Set the color index.

public setColorIndex(int $colorIndex) : void
Parameters
$colorIndex : int

writeFont()

Get font record data.

public writeFont() : string
Return values
string

mapBold()

Map to BIFF5-BIFF8 codes for bold.

private static mapBold(bool|null $bold) : int
Parameters
$bold : bool|null
Return values
int

mapUnderline()

Map underline.

private static mapUnderline(string $underline) : int
Parameters
$underline : string
Return values
int

        
On this page

Search results