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

Right to left text drawn in opposite order. #3921

Open
dhtdht020 opened this issue Apr 7, 2021 · 13 comments
Open

Right to left text drawn in opposite order. #3921

dhtdht020 opened this issue Apr 7, 2021 · 13 comments
Labels
bug Something isn't working text Issues relating to text rendering/input

Comments

@dhtdht020
Copy link

dhtdht020 commented Apr 7, 2021

Describe the bug
Right to left languages, like Hebrew, display incorrectly through Ruffle.
image
Rather than drawing the letters from right to left, they are drawn in the opposite order.
So the following text (in hebrew): Hello
Appears as: olleH
Note that this is not a problem with the font difference, rather the ordering of the letters.

Expected behavior
The text should be drawn from right to left.
In this specific example, the white text below the orange clock should be drawn as it does in Adobe Flash Player, to support flash animations that include RTL languages:

image

Is the problem with the Ruffle desktop app, extension, or self-hosted version?
I have tested this problem in both the Ruffle desktop app, and the (chrome) extension.

What platform are you using?

  • Windows 10, build 19042.
  • Latest nightly build as of writing (Nightly 2021-04-07)
  • Google Chrome, version 89.0.4389.114, 64bit.

Link to SWF: clock.zip

@dhtdht020 dhtdht020 added the bug Something isn't working label Apr 7, 2021
@relrelb relrelb added the text Issues relating to text rendering/input label Apr 9, 2021
@pirzol
Copy link

pirzol commented Jun 2, 2021

same here with ruffle Nightly 2021-06-04.

@ousia
Copy link
Contributor

ousia commented Dec 10, 2021

Weird, using nightly from 2021-12-10 at https://ruffle.rs/demo/, I get only x.

rtl-clock

I wonder whether this may be a regression.

@dhtdht020
Copy link
Author

@ousia took a look as well by comparing the version I've originally used and nightly 2021-12-10, I can confirm it appears that hebrew doesn't properly display anymore.

image

@ousia
Copy link
Contributor

ousia commented Dec 10, 2021

@dhtdht020, how about opening a new issue with the regression displaying embedded font?

@dhtdht020
Copy link
Author

@dhtdht020, how about opening a new issue with the regression displaying embedded font?

Thanks, done that, #5839

@ousia
Copy link
Contributor

ousia commented Dec 29, 2021

@dhtdht020, the issue about displaying Hebrew characters has been fixed.

Could you confirm that Hebrew text isn’t displayed right to left (as it should be)?

Many thanks for your help.

@dhtdht020
Copy link
Author

dhtdht020 commented Dec 29, 2021

@dhtdht020, the issue about displaying Hebrew characters has been fixed.

Could you confirm that Hebrew text isn’t displayed right to left (as it should be)?

Many thanks for your help.

@ousia Can confirm Hebrew text is not displayed right to left.

image

@ousia
Copy link
Contributor

ousia commented Dec 21, 2022

@dhtdht020, is it just me or are Hebrew characters not being displayed again?

@dhtdht020
Copy link
Author

@dhtdht020, is it just me or are Hebrew characters not being displayed again?

Can confirm that it seems things have regressed again.

image

@ousia
Copy link
Contributor

ousia commented Dec 21, 2022

@dhtdht020, just reported the issue.

Many thanks for your confirmation.

@ousia
Copy link
Contributor

ousia commented Jan 21, 2024

@dhtdht020, after @n0samu stated that this SWF doesn’t really use the glyphs from the embedded font, I wonder whether the lack of R2L is due to a flaw in Ruffle or the provided SWF isn’t properly tagged.

Could you check whether the Hebrew version (or other RTL text) is working properly in https://htwins.net/scale2_old/?

Many thanks for your help.

@n0samu
Copy link
Member

n0samu commented Jan 21, 2024

Right-to-left text is not rendered correctly in Ruffle at the moment, this is a known issue. If you see proper right-to-left text in any content, that would be because it is in the SWF as a bitmap/image rather than a text field.

@dhtdht020
Copy link
Author

dhtdht020 commented Feb 3, 2024

@dhtdht020, after @n0samu stated that this SWF doesn’t really use the glyphs from the embedded font, I wonder whether the lack of R2L is due to a flaw in Ruffle or the provided SWF isn’t properly tagged.

Could you check whether the Hebrew version (or other RTL text) is working properly in https://htwins.net/scale2_old/?

Many thanks for your help.

@ousia I can confirm that the Hebrew version of the Flash app in the provided URL renders correctly and in the right order, with Nightly 2024-02-03.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working text Issues relating to text rendering/input
Projects
None yet
Development

No branches or pull requests

5 participants