# gpui: Fix cosmic-text raster_bounds calculation \(\#30552\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/634b27593119b9b6495dc8c0c43d77497fb729f9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 634b27593119b9b6495dc8c0c43d77497fb729f9

Requested commit: 634b27593119b9b6495dc8c0c43d77497fb729f9

Commit: 634b27593119b9b6495dc8c0c43d77497fb729f9

Tree: f6526f11a2574800379852ae5de12011337c46f0

Author: william341

Committer: GitHub

## Message

```
gpui: Fix cosmic-text raster_bounds calculation (#30552)

Closes #30526.

This PR makes the CacheKey used by raster_bounds and rasterize_glyph the
same, as they had not used the same sub pixel shift previously. Fixing
this resolves both the alignment and text-rendering issues introduced in
`ddf8d07`.

Release Notes:

- Fixed text rendering issues on Linux.
```

## Parents

- [8000151aa9486d01c22c17c6afbc580606145753](https://git.cafe/gitcafe/zed/commit/8000151aa9486d01c22c17c6afbc580606145753?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/634b27593119b9b6495dc8c0c43d77497fb729f9?format=markdown)
