Documentation

Font

Table of Contents

$colorIndex  : int
Color index.
$font  : Font
Font.
$mapUnderline  : array<string|int, int>
Map of BIFF2-BIFF8 codes for underline styles.
$notImplemented  : int
__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 = [PhpOfficePhpSpreadsheetStyleFont::UNDERLINE_NONE => 0x0, PhpOfficePhpSpreadsheetStyleFont::UNDERLINE_SINGLE => 0x1, PhpOfficePhpSpreadsheetStyleFont::UNDERLINE_DOUBLE => 0x2, PhpOfficePhpSpreadsheetStyleFont::UNDERLINE_SINGLEACCOUNTING => 0x21, PhpOfficePhpSpreadsheetStyleFont::UNDERLINE_DOUBLEACCOUNTING => 0x22]

$notImplemented

private static int $notImplemented = 0

Methods

__construct()

Constructor.

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

setColorIndex()

Set the color index.

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

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

Search results