Font extends AbstractStyle
Font style writer
Tags
Table of Contents
- $style : string|AbstractStyle
- Style; set protected for a while
- $isInline : bool
- Is inline in element
- $xmlWriter : XMLWriter
- XML writer
- __construct() : mixed
- Create new instance.
- setIsInline() : mixed
- Set is inline.
- write() : mixed
- Write style.
- assembleStyle() : string
- Assemble style array into style string
- convertTwip() : int|float
- Convert twip value
- getStyle() : string|AbstractStyle
- Get Style
- getXmlWriter() : XMLWriter
- Get XML Writer
- writeChildStyle() : mixed
- Write child style.
- writeOnOf() : null|string
- Writes boolean as 0 or 1
- writeStyle() : mixed
- Write full style.
Properties
$style
Style; set protected for a while
protected
string|AbstractStyle
$style
$isInline
Is inline in element
private
bool
$isInline
= false
$xmlWriter
XML writer
private
XMLWriter
$xmlWriter
Methods
__construct()
Create new instance.
public
__construct(XMLWriter $xmlWriter[, string|AbstractStyle $style = null ]) : mixed
Parameters
- $xmlWriter : XMLWriter
- $style : string|AbstractStyle = null
Return values
mixed —setIsInline()
Set is inline.
public
setIsInline(bool $value) : mixed
Parameters
- $value : bool
Return values
mixed —write()
Write style.
public
write() : mixed
Return values
mixed —assembleStyle()
Assemble style array into style string
protected
assembleStyle([array<string|int, mixed> $styles = array() ]) : string
Parameters
- $styles : array<string|int, mixed> = array()
Return values
string —convertTwip()
Convert twip value
protected
convertTwip(int|float $value, int $default) : int|float
Parameters
- $value : int|float
- $default : int
-
(int|float)
Return values
int|float —getStyle()
Get Style
protected
getStyle() : string|AbstractStyle
Return values
string|AbstractStyle —getXmlWriter()
Get XML Writer
protected
getXmlWriter() : XMLWriter
Return values
XMLWriter —writeChildStyle()
Write child style.
protected
writeChildStyle(XMLWriter $xmlWriter, string $name, mixed $value) : mixed
Parameters
- $xmlWriter : XMLWriter
- $name : string
- $value : mixed
Return values
mixed —writeOnOf()
Writes boolean as 0 or 1
protected
writeOnOf([bool $value = null ]) : null|string
Parameters
- $value : bool = null
Return values
null|string —writeStyle()
Write full style.
private
writeStyle() : mixed