Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.
This repository was archived by the owner on May 20, 2026. It is now read-only.

Bidirectional text support with something like a PreTextRenderer #98

Description

@andreialecu

It would be really nice to support mixed-script text better in this repo.

Looking at chenglou/pretext, the readme mentions it can render text to WebGL. That made me wonder if it could maybe be used here as the basis for a new text renderer, something like PreTextRenderer or similar.

This could be useful for cases where text includes multiple scripts in the same string/component, and might help with broader i18n support too.

Maybe worth exploring:

  • whether pretext could plug into the existing text rendering setup
  • whether a separate renderer like PreTextRenderer would make sense
  • what the limitations would be (I see it needs Intl.Segmenter which is Chrome 87+)

Repo:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions