#immediate.text(topLeft: Vector2 | Vector3, text: string, fontDescriptor: FontDescriptor, outlined: boolean, color: Color4) → boolean
since 1.6.15-alpha
Draws text given a custom font. Must be used inside RunService.PreRender. Returns true if the text was successfully rendered, false if rendering failed.
Parameters
| topLeft | Vector2 | Vector3 | The top left origin of the text. |
| text | string | The text to render. |
| fontDescriptor | FontDescriptor | The descriptor. |
| outlined | boolean | Whether the text is rendered with an outline |
| color | Color4 | The color of the text |
Measures the pixel size a string would occupy if it were drawn with the given font, without actually rendering anything. Must be used inside RunService.PreRender.
Parameters
| text | string | The text to measure. |
| fontDescriptor | FontDescriptor | The font the text would be drawn with. |