lucasFont.enumFontFamilies: Difference between revisions

From GTA Connected
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 icon-iii.png icon-vc.png icon-sa.png icon-iv.png 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

icon-iii.png icon-vc.png icon-sa.png icon-iv.png font.measure
icon-iii.png icon-vc.png icon-sa.png icon-iv.png font.render
icon-iii.png icon-vc.png icon-sa.png icon-iv.png font.size