Preloaded

lumin.resources. Preloaded

This class encapsulates preloaded resources available for use
by all Lumin clients. These resources are not configurable, never change
after the server is started, and their backing data sources are not
available to clients.

Classes

StyleAndWeight

Methods

getDefaultUiFont2d(styleopt, weightopt) → {lumin.Font2dResource}

Get the Magic Leap default UI font, which is called Lomino.

Parameters:
Name Type Attributes Default Description
style lumin.resources.FontStyle <optional>
FontStyle.kNormal

The style of UI font.

weight lumin.resources.FontWeight <optional>
FontWeight.kRegular

The weight (i.e., thickness) of the UI font.

Returns:
Type
lumin.Font2dResource

getDefaultUiFont2d(styleAndWeight) → {lumin.Font2dResource}

Get the Magic Leap default UI font, which is called Lomino.

Parameters:
Name Type Description
styleAndWeight lumin.resources.Preloaded.StyleAndWeight

The style and weight (i.e., thickness) of the UI font.

Returns:
Type
lumin.Font2dResource

getDefaultUiFontStylesAndWeights() → {Array.<lumin.resources.Preloaded.StyleAndWeight>}

Get a list of all supported styles and weights for the default UI font.

Returns:
Type
Array.<lumin.resources.Preloaded.StyleAndWeight>