Skip to main content

Pixi BitmapText

This node displays text using bitmap fonts for consistent rendering across platforms.

The Pixi BitmapText renders text using bitmap fonts for optimal performance.

The Pixi BitmapText node creates a PIXI.BitmapText object that displays text using bitmap fonts. This provides consistent rendering across all platforms and better performance for large amounts of text compared to regular text nodes.

Inputs

Position

DataDescription
XHorizontal position
YVertical position

Transform

DataDescription
RotationRotation in radians
Scale XHorizontal scale
Scale YVertical scale
Pivot XHorizontal pivot
Pivot YVertical pivot

Appearance

DataDescription
AlphaTransparency
TintColor tint
VisibleVisibility
InteractiveInteraction enable

Text

DataDescription
TextText content to display

Font

DataDescription
Font KeyBitmap font key/name
Font SizeFont size in pixels
AlignText alignment
Letter SpacingCharacter spacing
Max WidthMaximum text width

Filters

DataDescription
Enable BlurBlur filter
Blur AmountBlur intensity
Enable Color MatrixColor matrix filter
Enable DisplacementDisplacement filter

Animation

DataDescription
Ticker EnabledAnimation ticker
Ticker SpeedAnimation speed
Animation TypeAnimation type
Custom Animation CodeCustom animation code

Outputs

DataDescription
Text WidthCurrent text width
Text HeightCurrent text height
Node ReferenceNode reference
SignalDescription
Pointer DownTriggered when pointer is pressed down
Pointer UpTriggered when pointer is released
Pointer TapTriggered when pointer taps the text
Pointer EnterTriggered when pointer enters the text
Pointer LeaveTriggered when pointer leaves the text
Pointer MoveTriggered when pointer moves over the text

Usage

Pixi BitmapText nodes are used to display text using bitmap fonts in your Pixi scene. They provide:

  • Consistent rendering across platforms
  • Better performance for large text amounts
  • Fixed character sets and styling
  • Interactive events
  • Animation capabilities

Bitmap Font Requirements

Bitmap fonts require:

  • Font Key: Identifier for the loaded bitmap font
  • Font Size: Size in pixels (must match the loaded font)
  • Character Set: Limited to characters included in the font

Performance Tips

  • Use bitmap fonts for large amounts of text
  • Choose appropriate Font Size for your display needs
  • Use Max Width for text wrapping
  • Consider Letter Spacing for readability
  • Monitor Text Width and Text Height for layout

Example Use Cases

  1. Game UI: Score displays, player names, and game text
  2. Performance-Critical Text: Large amounts of dynamic text
  3. Consistent Styling: Text that must look identical across devices
  4. Fixed Character Sets: Numeric displays and limited text content