Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bidirectional text support #1016

Open
Tracked by #56
yzn-h opened this issue Dec 29, 2021 · 13 comments
Open
Tracked by #56

Bidirectional text support #1016

yzn-h opened this issue Dec 29, 2021 · 13 comments
Labels
feature New feature or request text Problems related to text

Comments

@yzn-h
Copy link

yzn-h commented Dec 29, 2021

Describe the solution you'd like
I'd love to be able to write in RTL languages like Arabic and Persian.

Describe alternatives you've considered
there are tools to reverse RTL languages letters like this for Arabic but in egui I cant write RTL letters

Additional context

  • great talk link
  • Godot engine 4.0 has an excellent implementation
@yzn-h yzn-h added the feature New feature or request label Dec 29, 2021
@emilk emilk added the text Problems related to text label Dec 29, 2021
@yzn-h
Copy link
Author

yzn-h commented Dec 30, 2021

@emilk
Copy link
Owner

emilk commented Dec 30, 2021

Implementing right-to-left is a lot of work (I know, I've done it before). I rather switch egui to use a crate that does it all for me. I'm not sure which though. I haven't looked at the alternatives in a long while, but I've been keeping my eye on https://github.com/dfrg/swash by @dfrg (https://github.com/dfrg/swash_demo is very impressive).

@parasyte
Copy link
Contributor

Related to #56

@Mohsen7s
Copy link

@emilk Did you make a decision on this ? Any ETA ?

@emilk
Copy link
Owner

emilk commented Jan 24, 2022

No, I have other things higher on my priority list right now. What's needed first is a bit of research in different text rendering/layout libraries (I mentioned swash above, but there might be other ones to check out).

@ElhamAryanpur
Copy link

Hello!

Any plans for this?

@yzn-h
Copy link
Author

yzn-h commented Feb 17, 2023

can't cosmic text be used for egui ?

@parasyte
Copy link
Contributor

Yes, and cosmic text may help with rendering quality as mentioned in #2639 (comment)

@ElhamAryanpur
Copy link

bump

Are there any plans so far?

@ElhamAryanpur
Copy link

Bump

@emilk
Copy link
Owner

emilk commented Sep 22, 2023

There's no plans to implement this in egui right now (it is a lot of work). I rather switch out the text layout and rendering in egui than work on it further. I am curious to investigate if cosmic text would be a good fit.

@ElhamAryanpur
Copy link

So far cosmic text's roadmap seems to be almost done. I was thinking of giving it a try and sort of maybe hack a fix into egui later on. Can I post updates here or...somewhere else?

@emilk
Copy link
Owner

emilk commented Sep 23, 2023

That sounds great @ElhamAryanpur ! I suggest opening a new issue here specifically about Cosmic Text and then posting your updates there! On of the things I'm curious about is how Cosmic Text does its text rendering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request text Problems related to text
Projects
None yet
Development

No branches or pull requests

5 participants