text-and-bitmaptext

Render Canvas Text, BitmapText, and DynamicBitmapText in Phaser 4.

1|Updated May 3, 2026
One-click install
npx skills add https://github.com/WanderTheWeeb/papas_trauma --skill text-and-bitmaptext-wandertheweeb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: text-and-bitmaptext
Source: https://github.com/WanderTheWeeb/papas_trauma/tree/main/skills/text-and-bitmaptext
Command: npx skills add https://github.com/WanderTheWeeb/papas_trauma --skill text-and-bitmaptext-wandertheweeb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you display readable text in Phaser 4 without getting stuck on styling, alignment, wrapping, and choosing between Canvas Text and faster BitmapText options.

Core Features & Use Cases

  • Unified text workflows for Phaser 4 Text, BitmapText, and DynamicBitmapText, including how to create, style, and update them.
  • Practical typography controls such as word wrap by pixel width, multi-line alignment, padding, fixed sizing, max lines, line spacing, and letter spacing.
  • Performance-aware guidance for frequent updates (prefer BitmapText) and per-character effects (use DynamicBitmapText display callbacks), plus tips for retro fonts and bounds-based interaction.

Quick Start

Use the text-and-bitmaptext skill to render a centered, wrapped UI label with Phaser 4 Text or BitmapText and update it dynamically while keeping performance in mind.

Frequently Asked Questions about text-and-bitmaptext

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render styled and wrapped text in Phaser 4?

Render styled and wrapped text in Phaser 4 using Canvas Text, BitmapText, or DynamicBitmapText objects to configure TextStyle, apply word wrap by pixel width, and set multi-line alignment.

What is the difference between Phaser 4 BitmapText and Canvas Text for game UI?

BitmapText provides performance-aware rendering for high-frequency updates like counters, while Canvas Text handles complex TextStyle configurations and DynamicBitmapText supports per-character animation via display callbacks.

How do I configure word wrap and alignment for dynamic text in Phaser?

Configure word wrap and alignment for dynamic text by setting pixel width limits, max lines, line spacing, and letter spacing within TextStyle to control paragraph layout and multi-line alignment.

When should I use DynamicBitmapText display callbacks in Phaser 4?

Use DynamicBitmapText display callbacks in Phaser 4 when you need per-character animation effects or bounds-based interaction, ensuring high-performance rendering for retro-font presentations.

Does Phaser 4 BitmapText support retro fonts and BitmapFont cache usage?

Yes, Phaser 4 BitmapText supports retro fonts and BitmapFont cache usage, providing performance-aware rendering for frequent updates and styled label presentation in game UI.