diff --git a/libs/FML/Controls/Entry.php b/libs/FML/Controls/Entry.php index ceb535f3..d9ed08df 100644 --- a/libs/FML/Controls/Entry.php +++ b/libs/FML/Controls/Entry.php @@ -315,7 +315,7 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF */ public function setTextSize($textSize) { - $this->textSize = (int)$textSize; + $this->textSize = (float)$textSize; return $this; } diff --git a/libs/FML/Controls/Label.php b/libs/FML/Controls/Label.php index 61b50043..4bf1639b 100644 --- a/libs/FML/Controls/Label.php +++ b/libs/FML/Controls/Label.php @@ -521,7 +521,7 @@ class Label extends Control implements Actionable, Linkable, NewLineable, MultiL */ public function setTextSize($textSize) { - $this->textSize = (int)$textSize; + $this->textSize = (float)$textSize; return $this; } diff --git a/libs/FML/Controls/TextEdit.php b/libs/FML/Controls/TextEdit.php index 4f499801..4dfbd07c 100644 --- a/libs/FML/Controls/TextEdit.php +++ b/libs/FML/Controls/TextEdit.php @@ -347,7 +347,7 @@ class TextEdit extends Control implements MultiLineable, Scriptable, Styleable, */ public function setTextSize($textSize) { - $this->textSize = (int)$textSize; + $this->textSize = (float)$textSize; return $this; } diff --git a/libs/FML/Elements/Format.php b/libs/FML/Elements/Format.php index 0b312a49..8540f447 100644 --- a/libs/FML/Elements/Format.php +++ b/libs/FML/Elements/Format.php @@ -145,7 +145,7 @@ class Format implements BackgroundColorable, BgColorable, Renderable, Styleable, */ public function setTextSize($textSize) { - $this->textSize = (int)$textSize; + $this->textSize = (float)$textSize; return $this; } diff --git a/libs/FML/Stylesheet/Style.php b/libs/FML/Stylesheet/Style.php index 70657c04..01cf3be3 100644 --- a/libs/FML/Stylesheet/Style.php +++ b/libs/FML/Stylesheet/Style.php @@ -367,7 +367,7 @@ class Style implements BackgroundColorable, BgColorable, Colorable, Renderable, */ public function setTextSize($textSize) { - $this->textSize = (int)$textSize; + $this->textSize = (float)$textSize; return $this; }