Per-language font settings #49759
jassielof
started this conversation in
Feature Requests
Replies: 2 comments
-
|
I personally would like to use Gentium when writing documentation (Markdown files). |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Array languages such as APL/BQN/Uiua often have custom fonts to support the specific glyps they are using. Being able to specify |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
What are you proposing?
Extend the existing languages configuration block to support buffer/editor font settings on a per-language basis, specifically
buffer_font_family,buffer_font_size, andligature toggles or even font features. Zed supports some per-language settings liketab_size`, but font-related settings are only configurable globally.Being set like:
Could mention a similar approach like VS Code with brackets (to allow the same per language settings to a set of languages), but that's unrelated.
Why does this matter and what it solves?
Different types of languages have their special reading and writing context. For example, markup/typesetting languages (like Typst, LaTeX, AsciiDoc or Markdown) are more prose than code in general, so a humanist or variable-width font (like Monaspace) helps in readability.
In contrast, code focused languages (like Rust, JS, etc.) need a different type of reading.
Some other users might want to disable ligatures in given languages, different sizes, etc. too.
What becomes easier or possible?
Per-language font control/customization.
Are there any examples or context?
VS Code's settings, such as:
Which applies to Typst, LaTeX and Markdown.
Possible approach
Extend the settings per-language settings to allow font-related settings.
References
Beta Was this translation helpful? Give feedback.
All reactions