Skip to content

🌍 Add RTL Text Support for Canvas and SDF Font Renderers (Arabic, Hebrew, etc.) #475

@wouterlucas

Description

@wouterlucas

🌟 Feature Request: RTL Text Support in Font Engines

🚀 Goal

Support for Right-to-Left (RTL) text rendering is essential to accommodate languages like Arabic, Hebrew, and others 🌍. Currently, RTL rendering is not natively supported in the following font engines:

  • 🖌️ Canvas Text Renderer
  • ✍️ SDF Font Renderer

This feature will enable proper text alignment, glyph shaping, and directionality for RTL languages.

🔧 Suggested Implementation

  • Add RTL text layout logic to both renderers.
  • Integrate glyph shaping for languages with complex scripts (e.g., Arabic ligatures).
  • Provide an API for switching between LTR and RTL modes on CoreTextNode.

🛠️ Resources

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions