Skip to content

Demo Arabic support#185

Closed
barq-al-layl wants to merge 7 commits into
jacobras:mainfrom
barq-al-layl:feat/demo-arabic-support
Closed

Demo Arabic support#185
barq-al-layl wants to merge 7 commits into
jacobras:mainfrom
barq-al-layl:feat/demo-arabic-support

Conversation

@barq-al-layl

Copy link
Copy Markdown
Contributor

The Issue

Web target had an issue rendering Arabic characters correctly without a font that supports Arabic.

The Solution

  • Added JVM target to the demo to enable font fallback (by moving UI code from webMain to shared commonMain).
  • Apply RTL text direction when Arabic is selected, this ensures that Arabic numbers, letters, and prepositions are formatted and aligned correctly.

@jacobras

Copy link
Copy Markdown
Owner

CMP 1.12 brings support for extended font rendering. I've opened a PR for it, #186, so this one won't be necessary any more. I don't wish to add desktop support, to keep the example simple.

Instead of doing the RTL support per text, I'm setting the LayoutDirection for the whole demo. Easier to maintain, no risk of forgetting it anywhere in the demo.

Screenshot:

image

So I'm closing this, as my new PR now supersedes it :)

@jacobras jacobras closed this Jun 19, 2026
@barq-al-layl barq-al-layl deleted the feat/demo-arabic-support branch June 19, 2026 17:50
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