X Tutup
Skip to content

negative x value for gui element in some languages #117274

@mutedfishman

Description

@mutedfishman

Tested versions

  • Reproducible in: 4.6.dev2, 4.6.1.stable, 4.7.dev2
  • Not reproducible: 4.6.dev1, 4.5.1stable, earlier 4.5 versions

System information

Godot v4.6.1.stable - Windows 10 (build 19045) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - Intel(R) UHD Graphics (Intel Corporation; 32.0.101.7077) - 12th Gen Intel(R) Core(TM) i5-1235U (12 threads) - 7.67 GiB memory

Issue description

If your pc primery language is typed from right to left, then on runtime the x cordinates of the gui will be negative.

Examples:

This what you will see it in the editor, and in the runtime of most languages (example: russian).
Image

This is the same poject, but run while the pc primery language was set to arabic (algir)
Image

And if you change the x cordinates of the button to be the same but negative, the button will appear again
Image

Steps to reproduce

  1. change your pc primary language to one that writen from right to left
  2. just run the in the editor game or even an export of that game

Minimal reproduction project (MRP)

N/A

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

      X Tutup