Font
Lens Studio v1.7.0+
Scripting Name: Asset.Font
Inherits from Asset
Description
A font asset used for rendering text. Used by Text. For more information, see the Text guide.
Inherited Methods
isSame(SerializableWithUID other)
: Boolean
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
getTypeName()
: String
Returns the name of this object’s type.
isOfType(String type)
: Boolean
Returns true if the object matches or derives from the passed in type.
Inherited Properties
name
: String
The name of the Asset in Lens Studio.
Examples
// Assign a Font to a Label
//@input Component.Label label
//@input Asset.Font font
script.label.fontAsset = script.font;
Still Looking for help?
Visit Support