From 6b13236a6619e524fb8d96ceeed058d4d4136cca Mon Sep 17 00:00:00 2001
From: Robert Jelic <36573031+NoryiE@users.noreply.github.com>
Date: Sun, 29 May 2022 16:32:29 +0200
Subject: [PATCH] Updated Label (markdown)
---
Label.md | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/Label.md b/Label.md
index fec228c..a82bc54 100644
--- a/Label.md
+++ b/Label.md
@@ -13,3 +13,22 @@ local aInput = mainFrame:addLabel("myFirstLabel"):setText("Hello lovely basalt c
````
**arguments:** string text
**returns:** self
+
+## setFontSize
+sets the font size of that text.
+````lua
+local mainFrame = basalt.createFrame("myFirstFrame"):show()
+local aInput = mainFrame:addLabel("myFirstLabel"):setText("Hello"):setFontSize(2):show()
+````
+**arguments:** number size (1 = default, 2 = big, 3 = bigger, 4 = huge)
+**returns:** self
+
+## getFontSize
+returns the fontsize
+````lua
+local mainFrame = basalt.createFrame("myFirstFrame"):show()
+local aInput = mainFrame:addLabel("myFirstLabel"):setText("Hello"):setFontSize(2):show()
+basalt.debug(aInput:getFontSize()) -- returns 2
+````
+**arguments:**
+**returns:** number