ax.font¶
Source: gamemode/framework/libraries/cl_font.lua
Font management system for creating and storing fonts used throughout the Parallax Framework.
Documented functions: 4
Functions¶
ax.font:CreateFamily(name, font, size, fontData)ax.font:GenerateAvailableFonts()ax.font:GenerateStyleCombinations()GeneratePermutations(arr)
ax.font:CreateFamily(name, font, size, fontData)¶
Create a font family with all style variations
Realm: client
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
The base name for the font family |
font |
string |
The font face name |
size |
number |
The font size |
fontData |
table |
Optional additional font data |
ax.font:GenerateAvailableFonts()¶
Generate list of all available fonts
Realm: client
Returns
table: Array of all font names
ax.font:GenerateStyleCombinations()¶
Generate all style combinations with all orderings (cached)
Realm: client
Returns
table: Array of all style combinations
GeneratePermutations(arr)¶
Generate all permutations of a table
Realm: client
Parameters
| Name | Type | Description |
|---|---|---|
arr |
table |
The array to permute |
Returns
table: Array of all permutations