# gpui_macos: Warn when falling back to NoopTextSystem \(\#59247\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 759bacff378bc886c1545a0da015d347c25bf15d

Requested commit: 759bacff378bc886c1545a0da015d347c25bf15d

Commit: 759bacff378bc886c1545a0da015d347c25bf15d

Tree: a8d48d044ced5e82b8d884ef4f5124c7fa5cf4ab

Author: Sergei G\.

Committer: GitHub

## Message

```
gpui_macos: Warn when falling back to NoopTextSystem (#59247)

# Objective

Without the `font-kit` feature, `MacPlatform` silently substitutes
`gpui::NoopTextSystem`, which accepts fonts and resolves font ids but
rasterizes every glyph to an empty bitmap.

I hit this with the `component_preview` example
https://github.com/zed-industries/zed/pull/59241.

## Solution

Log a warning at startup in `MacPlatform::new()` when falling back to
`NoopTextSystem`. Skipped in headless mode, where no text is expected to
render and the fallback is a reasonable configuration.

## Testing

Checked as part of https://github.com/zed-industries/zed/pull/59241

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)

## Showcase

It just render as like without any error:
<img width="1312" height="945" alt="cp_pr1_before"
src="https://github.com/user-attachments/assets/f5faf3c0-9523-4c5f-9756-e65cbaf3456f"
/>


---

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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