Repository: godot
Issue: Ellipsis sometimes not being rendered for RTL text
Labels: bug,topic:gui

### Tested versions

- Reproducible in 4.4.dev (76fa7b291455a8ba24c50005072ebdb58f8a5984)

### System information

Godot v4.4.dev (342e6b286) - Arch Linux #1 ZEN SMP PREEMPT_DYNAMIC Fri, 08 Nov 2024 17:57:58 +0000 on Wayland - X11 display driver, Multi-window, 2 monitors - Vulkan (Forward+) - dedicated Intel(R) Arc(tm) A770 Graphics (DG2) - Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 threads)

### Issue description

### LTR

|                       | H Align Left | H Align Center | H Align Right |
|-----------------------|--------------|----------------|---------------|
| Overrun No Trimming   |  ![image](https://github.com/user-attachments/assets/9f5d32cc-3815-4182-a355-37b8389b6170)            |     ![image](https://github.com/user-attachments/assets/18760bc6-8e7b-40f5-9e71-a62b9fc8219d)           |   ![image](https://github.com/user-attachments/assets/7669eb12-93f5-42ab-9a81-70771f5079bf)            |
| Overrun Trim Char     |       ![image](https://github.com/user-attachments/assets/f46e13a8-2592-4d37-9fb3-d635f0cd156e)       |         ![image](https://github.com/user-attachments/assets/36ef3e13-2287-447e-9fbc-ca83de41aaa2)       |      ![image](https://github.com/user-attachments/assets/7687f635-afe3-40ff-af6e-fca3b937c85f)         |
| Overrun Trim Ellipsis |    ![image](https://github.com/user-attachments/assets/952ef541-042c-48b9-b6ff-c46f8f6df3c2)          |    ![image](https://github.com/user-attachments/assets/3afa5ebf-a02c-4272-ae78-ea4d2bced846)            |   ![image](https://github.com/user-attachments/assets/bb3c9ccb-20c8-4d58-ab17-8734535d8a8b)            |

### RTL

|                       | H Align Left | H Align Center | H Align Right |
|-----------------------|--------------|----------------|---------------|
| Overrun No Trimming   |    ![image](https://github.com/user-attachments/assets/1013d937-d2bb-4ec0-b8af-4ff6f4eeac50)          |         ![image](https://github.com/user-attachments/assets/da49a25f-ddde-4bf9-a28e-2463665c0b09)       |        ![image](https://github.com/user-attachments/assets/e4f56255-8f39-4827-aaea-279134050e3c)       |
| Overrun Trim Char     |      ![image](https://github.com/user-attachments/assets/9781814b-c3a5-4964-836b-8adf3404a463)        |     ![image](https://github.com/user-attachments/assets/2d26a55a-5e9b-4aab-8ea2-d9f595037dfb)           |      ![image](https://github.com/user-attachments/assets/677b5412-477b-47ab-9ddc-af2bcf80449e)         |
| Overrun Trim Ellipsis |       ![image](https://github.com/user-attachments/assets/df2bf773-8202-4cca-97f4-67bbca076316)       |     ![image](https://github.com/user-attachments/assets/9fccab68-bb63-487f-9648-671f89fde01a)           |     ![image](https://github.com/user-attachments/assets/0b21c221-c479-4b20-942c-ad87f422490c)          |


https://github.com/user-attachments/assets/eb82ea90-999c-4967-b2f2-a8e6c61a21a3



### Steps to reproduce

Create a Label:

- Set some text
- Enable `clip_text`
- Set `text_overrun_behavior` to Ellipsis
- Set `text_direction` to Right-to-Left
- Resize the Label

### Minimal reproduction project (MRP)

N/A