diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index f46f12701e85..e030fc816351 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -1374,6 +1374,30 @@ def __float__(x): # handle eg. float("10,5cm") x = eval(x) return float(x) +def fontheight(n = -1): + if n != -1: + _.fontheight = n + else: + return _.fontheight + +def fontweight(n = -1): + if n != -1: + _.fontweight = n + else: + return _.fontweight + +def fontfamily(s = -1): + if s != -1: + _.fontfamily = s + else: + return _.fontfamily + +def fontstyle(n = -1): + if n != -1: + _.fontstyle = n + else: + return _.fontstyle + def __loadlang__(lang, a): global comp, __colors__ __colors__[lang] = {} @@ -1445,13 +1469,13 @@ def __loadlang__(lang, a): [r"(?