SIGN IN SIGN UP

gpui: Add helper methods for em width and em advance (#24036)

This PR adds two helpers methods to the `TextSystem`:

- `em_width`
- `em_advance`

These methods return the width and advance width for an `em`,
respectively.

We were using these definitions in a number of different spots, and by
unifying them we better canonicalize that an `em` is based on the `m`
character.

Release Notes:

- N/A
M
Marshall Bowers committed
990bdde5e889c0bba9437abf74306c31732d0d63
Parent: af6548c
Committed by GitHub <noreply@github.com> on 1/31/2025, 5:47:44 PM