Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Text2DStyleNativeFont

Add this component to an entity with a Text2DRenderer component to specify a native font.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional font: Entity
    • Optional italic: boolean
    • Optional weight: number

    Returns Text2DStyleNativeFont

Properties

font

font: Entity

The Font entity on which to look for a NativeFont component to use.

italic

italic: boolean

If true, adds the italic attribute to the text.

weight

weight: number

Sets the font weight. A value of 400 is normal weight. Higher values make characters thicker. Lower values make them thinner.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Static font

font: EntityComponentFieldDesc

Static italic

Static weight

Methods

Static _dtorFn

Static _fromPtr

Static _tempHeapPtr

Static _toPtr

Generated using TypeDoc