# gpui_web: Let applications provide fonts \(\#63493\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ef075910c99ce2c8fd07da4174e7c3bb71513f35

Requested commit: ef075910c99ce2c8fd07da4174e7c3bb71513f35

Commit: ef075910c99ce2c8fd07da4174e7c3bb71513f35

Tree: bf29173cf9bab6d4c57c304679aa651acbf2cce5

Author: Lukas Wirth

Committer: GitHub

## Message

```
gpui_web: Let applications provide fonts (#63493)

`gpui_web` currently embeds IBM Plex Sans and Lilex into every browser
application during platform construction. Applications such as Delta
already provide their own fonts, so those binaries contain overlapping
font bundles and register the same faces twice.

This change starts the web platform with an empty font database,
matching the ownership boundary used by native applications: the
application selects and registers its fonts before opening a window.
Delta already follows that sequence. GPUI's browser-capable examples now
load the former eight-face bundle explicitly through shared example
support, while the standalone `hello_web` example demonstrates
registering a minimal application font directly.

Testing performed:

- `cargo check -p gpui --examples --target wasm32-unknown-unknown`
- `cargo check -p gpui --examples`
- `cargo check -p gpui_web --target wasm32-unknown-unknown`
- `cargo check --manifest-path
crates/gpui_web/examples/hello_web/Cargo.toml --target
wasm32-unknown-unknown`
- `./script/clippy -p gpui_web --target wasm32-unknown-unknown`
- `cargo fmt -p gpui -p gpui_web --check`

Release Notes:

- N/A
```

## Parents

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

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