lucasFont.enumFontFamilies: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptItem |endpoint = client |type = function |name = lucasFont.enumFontFamilies |usage = enumerate through all font families |parameters = function handler |parameter1 = f...") |
No edit summary |
||
Line 9: | Line 9: | ||
|returnFail1 = void | |returnFail1 = void | ||
|callbackParameters = string familyName, array<int index, string styleName> styleNames | |callbackParameters = string familyName, array<int index, string styleName> styleNames | ||
}} | |exampleJS = lucasFont.enumFontFamilies(function(name, styles) { | ||
console.log("Font: " + name + ", Styles: " + styles.join(", ")); | |||
}); | |||
|}} |
Latest revision as of 01:37, 7 December 2024
Function
Client Only
Online and Offline
Available since Client 1.0.0
void lucasFont.enumFontFamilies(function handler)
The lucasFont.enumFontFamilies function is used to enumerate through all font families.
Parameters
1) | function | handler | The function to invoke for each font family. |
Return
void | This function doesn't return a value. |
Notes
There aren't any notes for this function.
Examples
Example 1 - JavaScript:
lucasFont.enumFontFamilies(function(name, styles) {
console.log("Font: " + name + ", Styles: " + styles.join(", "));
});
Compatibility
There isn't any compatibility information for this function.
Related
Client Related
font.measure
font.render
font.size