# Simplify and document parts of linux text system code \(\#9443\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7573f35e8e67747ee82b789fa56c4ad262c8421b

Requested commit: 7573f35e8e67747ee82b789fa56c4ad262c8421b

Commit: 7573f35e8e67747ee82b789fa56c4ad262c8421b

Tree: eea5cf11697475f22e5724af788ed204d5dd2d0e

Author: Niklas Wimmer

Committer: GitHub

## Message

```
Simplify and document parts of linux text system code (#9443)

I mainly focused on improving the `font_id` function, see the
description of e286483262e525c64c29d3747838ea9d2bac7bad for more
details. The rest are some drive-by changes I could not resist to.

When I am right about af4d6c43ce87ff5f16ad39c223e13326550010dd, someone
with a Mac could change it there as well.

This PR is probably best reviewed commit by commit :)

cc @gabydd @h3mosphere

Release Notes:

- N/A

---------

Signed-off-by: Niklas Wimmer <mail@nwimmer.me>
```

## Parents

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

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