SIGN IN SIGN UP

gpui: Fix `text-align` with nowrap mode (#24116)

Release Notes:

- N/A


------

- Continue #24090 to fix text align for when used `whitespace_nowrap`.
- Fix wrapped line length calculation.

And add example

```
cargo run -p gpui --example text_layout
```

<img width="760" alt="image"
src="https://github.com/user-attachments/assets/a087c300-0e0e-4a80-98c6-90161a9b0905"
/>

---------

Co-authored-by: Owen Law <owenlaw222@gmail.com>
J
Jason Lee committed
c5913899d9d776ecb3e5abe563b609216257f0f1
Parent: e689c8c
Committed by GitHub <noreply@github.com> on 2/7/2025, 2:51:00 AM