Skip to content

Add text support to scene loader#29

Open
painfulexistence wants to merge 8 commits into
mainfrom
claude/add-text-rendering-01W3jw9PXPZJMjWHDFcbvZaD
Open

Add text support to scene loader#29
painfulexistence wants to merge 8 commits into
mainfrom
claude/add-text-rendering-01W3jw9PXPZJMjWHDFcbvZaD

Conversation

@painfulexistence
Copy link
Copy Markdown
Owner

No description provided.

claude and others added 8 commits December 8, 2025 16:01
- Add TextComponent with support for text rendering, alignment (h/v),
  pivot, color, fontSize, and layer settings
- Update SceneLoader to create TextComponent for "Text" nodes in CSB
- Support horizontal alignment (Left, Center, Right) and vertical
  alignment (Top, Center, Bottom) within bounding box
- Text rendering uses GraphicsServer's DrawText API with font scaling
- Reinterpret Options.data as TextOptions for Text nodes
- Read text, fontSize, fontName, hAlignment, vAlignment from TextOptions
- Use areaWidth/areaHeight when isCustomSize is enabled
- Fallback to widgetOptions size otherwise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants