Part of StarfallEx namespace
๐ External
render.createFont(font, size, weight, antialias, additive, shadow, outline, blursize, extended, scanlines)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Creates a font. Does not require rendering hook Base font can be one of (keep in mind that these may not exist on all clients if they are not shipped with starfall): - Akbar - Coolvetica - Roboto - Roboto Mono - FontAwesome - Courier New - Verdana - Arial - HalfLife2 - hl2mp - csd - Tahoma - Trebuchet - Trebuchet MS - DejaVu Sans Mono - Lucida Console - Times New Roman
Parameters
| Name | Type | Description |
|---|---|---|
font | string | Base font to use |
size? | number | Font size. Default 16 |
weight? | number | Font weight. Default 400 |
antialias? | boolean | Antialias font? Default false |
additive? | boolean | If true, adds brightness to pixels behind it rather than drawing over them. Default false |
shadow? | boolean | Enable drop shadow? Default false |
outline? | boolean | Enable outline? Default false |
blursize? | number | The size of the blur Default 0 |
extended? | boolean | Allows the font to display glyphs outside of Latin-1 range. Unicode code points above 0xFFFF are not supported. Required to use FontAwesome |
scanlines? | number | Scanline interval. Must be greater than 1 to work. Shares uniqueness with blursize so you cannot create more than one scanline type of font with the same blursize. Default 0 |
Returns
| Type | Description |
|---|---|
string | The font name that can be used with the rest of the font functions. |
Examples
No examples available.
Used In
No usages found in the codebase.