font.render: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
PerikiyoXD (talk | contribs) No edit summary |
||
Line 18: | Line 18: | ||
|return1 = void | |return1 = void | ||
|returnFail1 = void | |returnFail1 = void | ||
|notes = You can use different colours using [[Format_Tags]] | |||
}} | }} |
Revision as of 03:42, 25 March 2021
Method
Client Only
Online and Offline
Available since Client 1.0.0
void font.render(string text, Vec2 position, float width, float align, float justify, float size, int colour, [ bool wordWrap = false, bool colourCodes = true, bool ignoreColourCodes = false, bool shadow = false ])
The font.render method is used to draw text on the screen using a font.
Parameters
1) | string | text | The text to draw. |
2) | Vec2 | position | The 2D position for the text. |
3) | float | width | The maximum width of the text, in pixels. |
4) | float | align | The horizontal alignment of the text, as a float. |
5) | float | justify | The justify alignment of the text, as a float. |
6) | float | size | The size of the text, as a float. |
7) | bool | wordWrap | Optional, defaults to false. Whether word wrap is enabled. |
8) | bool | colourCodes | Optional, defaults to true. Whether colour codes are resolved. |
9) | bool | ignoreColourCodes | Optional, defaults to false. Whether colour codes are not resolved. |
10) | bool | shadow | Optional, defaults to false. Whether to draw a shadow for the text. |
Return
void | This method doesn't return a value. |
Types
Client
Font
Notes
- You can use different colours using Format_Tags.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.
Related
Client Related
font.measure
font.render
font.size