This commit is contained in:
Robert Jelic
2025-09-13 12:50:01 +02:00
parent 179949c8b7
commit 3504d8a3aa
43 changed files with 2553 additions and 1719 deletions

View File

@@ -1,26 +1,34 @@
# BigFont : VisualElement
The BigFont element is a text element that displays larger text. It uses Wojbie's BigFont API to render the text in a larger font size. Credits to Wojbie for the original API.
# BigFontText
_Basalt - Nyorie: Please don't copy paste this code to your projects, this code is slightly changed (to fit the way basalt draws elements), if you want the original code, checkout this:
http://www.computercraft.info/forums2/index.php?/topic/25367-bigfont-api-write-bigger-letters-v10/_
### Usage
```lua
local font = main:addBigFont()
font:setText("Hello World!")
```
# BigFont
_The BigFont element is a text element that displays larger text. It uses Wojbie's BigFont API to render the text in a larger font size. Credits to Wojbie for the original API._
Extends: `VisualElement`
## Properties
|Property|Type|Default|Description|
|---|---|---|---|
|text|string|BigFont|BigFont text
|fontSize|number|1|The font size of the BigFont
|text|string|BigFont|BigFont text|
|fontSize|number|1|The font size of the BigFont|
## Protected Functions
## Functions
|Method|Returns|Description|
|---|---|---|
|BigFont:init|-|Initializes the BigFont instance
|BigFont:render|-|Renders the BigFont
|[BigFont.new](#bigfont-new)|table|Creates a new BigFont instance|
|[BigFont:BigFont](#bigfont-bigfont-props-basalt)|-|Initializes the BigFont instance|
|[BigFont:BigFont](#bigfont-bigfont)|-|Renders the BigFont|
## BigFont.new()
### Returns
* `table` `self` The created instance
## BigFont:BigFont(props, basalt)
### Parameters
* `props` `table` The properties to initialize the element with
* `basalt` `table` The basalt instance
## BigFont:BigFont()