# editor: Use a default font for the minimap \(\#45999\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 43f7dc46e90ac9e21854399739edebef7c25cc30

Requested commit: 43f7dc46e90ac9e21854399739edebef7c25cc30

Commit: 43f7dc46e90ac9e21854399739edebef7c25cc30

Tree: 35343f5bf7d8b6e9bdbe05a2b1f7cb4bb4fdf3e3

Author: Marco Mihai Condrache

Committer: GitHub

## Message

```
editor: Use a default font for the minimap (#45999)

Closes #45496
Should help #43460
And probably also #44503

The minimap usually renders about 10x more lines of code and shaped text
than the editor. With expensive fonts such as Google Sans Code, this can
cause noticeable lag, since we attempt to synthesize 300+ lines of code
using a heavy font. Because minimap text is rendered at around 2px and
is essentially illegible, it doesn’t make sense to use the custom buffer
font.

Release Notes:

- Improved minimap performance when using custom fonts

---------

Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
```

## Parents

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

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