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
990bdde5e8Marshall Bowers committed on 1/31/2025, 5:47:44 PM· committed by GitHubparentaf6548c
4 files changedLine totals unavailable