User-defined variation styles. See CustomVariationStyle. Populated via Font.createVariationStyle. Not applicable to static fonts.
ReadonlyisReturns true if this font is a variable font.
The name of the Asset in Lens Studio.
ReadonlynamedNamed instance info for this font. Empty for static fonts. See NamedInstanceInfo.
ReadonlyuniqueReadonlyvariationVariation axes of this font. Empty for static fonts. See VariationAxisInfo.
Create a new CustomVariationStyle bound to this font, append it to Font.customVariationStyles, and return it. Throws if called on a static font.
name must be non-empty and must not collide (case-, whitespace-, and
hyphen-insensitive) with a FontStyles constant (e.g. FontStyles.Bold),
a named instance on this font, or an existing custom variation style. Returns
null when the name is invalid.
StaticgetReturns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
A font asset used for rendering text.
See
Example