FML Update
This commit is contained in:
@ -22,6 +22,7 @@ class Format implements BgColorable, Renderable, Styleable, TextFormatable {
|
||||
protected $bgColor = null;
|
||||
protected $style = null;
|
||||
protected $textSize = -1;
|
||||
protected $textFont = null;
|
||||
protected $textColor = null;
|
||||
protected $focusAreaColor1 = null;
|
||||
protected $focusAreaColor2 = null;
|
||||
@ -59,6 +60,14 @@ class Format implements BgColorable, Renderable, Styleable, TextFormatable {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \FML\Types\TextFormatable::setTextFont()
|
||||
*/
|
||||
public function setTextFont($textFont) {
|
||||
$this->textFont = (string)$textFont;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \FML\Types\TextFormatable::setTextColor()
|
||||
*/
|
||||
@ -97,6 +106,9 @@ class Format implements BgColorable, Renderable, Styleable, TextFormatable {
|
||||
if ($this->textSize >= 0) {
|
||||
$formatXmlElement->setAttribute('textsize', $this->textSize);
|
||||
}
|
||||
if ($this->textFont) {
|
||||
$formatXmlElement->setAttribute('textfont', $this->textFont);
|
||||
}
|
||||
if ($this->textColor) {
|
||||
$formatXmlElement->setAttribute('textcolor', $this->textColor);
|
||||
}
|
||||
|
Reference in New Issue
Block a user