mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 01:51:52 +00:00
fix(defaults): 'guifont' "monospace" fallback, trim spaces #37930
Problem: Some UI clients break if space follows the comma in 'guifont' items. Also the new 'guifont' default may cause problems if none of the fonts are found. Solution: Remove trailing whitespace. Add a "monospace" fallback which `fontconfig` can resolve on *nix systems.
This commit is contained in:
@@ -3998,6 +3998,10 @@ local options = {
|
||||
abbreviation = 'gfn',
|
||||
defaults = {
|
||||
if_true = macros('DFLT_GFN', 'string'),
|
||||
doc = [[(MS-Windows) "Cascadia Code,Cascadia Mono,Consolas,Courier New,monospace"
|
||||
(Mac) "SF Mono,Menlo,Monaco,Courier New,monospace"
|
||||
(Linux) "Source Code Pro,DejaVu Sans Mono,Courier New,monospace"
|
||||
(others) "DejaVu Sans Mono,Courier New,monospace"]],
|
||||
},
|
||||
desc = [=[
|
||||
This is a list of fonts which will be used for the GUI version of Vim.
|
||||
|
||||
Reference in New Issue
Block a user